During my pull request, I changed my commit several times rewriting it. In git history I have a polished commit and in Jira I have 20 commits with all my retries where only the last one is relevant. I think this is because BitBucket remembers all of the commits and it shows them all in activity tab, but in commits tab it only shows one.
Is this intended that Jira pulls all commits from BitBucket instead of only active ones? Can I somehow configure Jira to only fetch actual commits? Can I maybe configure BitBucket to not remember these dead commits (I can still access then in web ui).
There is a similar question on SO without an answer https://stackoverflow.com/questions/25874104/completely-remove-commit-from-bitbucket-history