You can enable Bitbucket commit logs in your tasks. To get setup, please follow this steps:
7. Enable it: Enable bitbucket commit logs in tasks.
Note: To link the commits with tasks, there should be a # and task ID at the end of each commit messages. Ex: This is a commit of Task #10.