Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Query concerning commits listed for issue

I made some changes to my code and pushed the commit using TortoiseGit.

I then realised I needed to amend the commit message so I used a Amend Last Commit feature and did a force push.

Now, in BitBucket I see one commit (as I expected):

B56CF9F9-886E-4140-B9C1-F5D12FD787B6.jpeg

But when I view the linked issue in Jira is shows the two commits:

B264FBBC-48C1-4BE2-B981-397F77E2641D.jpegHow can that be fixed?

1 answer

1 accepted

0 votes
Answer accepted
Fadoua Community Leader Dec 26, 2020

@ChuckieAJ 

Did you check the following doc see if it can help with your problem?

https://support.atlassian.com/bitbucket-cloud/docs/use-smart-commits/

Best,

Fadoua

Fadoua Community Leader Dec 26, 2020

I use git bash to push my changes to BB never had an issue like yours. I do change my comments many times (I am a DataCenter user it could be the reason)

All the best

Fadoua

I used tortoisegit check for updates. Typed the commit and hit push. 

Then I did Git Commit and Amend Last Commit and edited message. Then I did push force with known changes. 

If I amend the last commit before I have pushed it then things are ok. It was when I did the push with force. 

Fadoua Community Leader Dec 26, 2020

Did you try the smart commits link I sent you?

I used tortoisegit check for updates. Typed the commit and hit push. 

Then I did Git Commit and Amend Last Commit and edited message. Then I did push force with known changes. 

If I amend the last commit before I have pushed it then things are ok. It was when I did the push with force. 

@Fadoua No I have not tried. That linked article has a lot of information over my head. I only have one single commit that I would like Jira to exclude. 

Fadoua Community Leader Dec 26, 2020

Any Dev environment to test?

That link I shared has a valuable info, I will try it myself.

I am not familiar with tortoisegit at all.

As I showed in my screen shots @Fadoua , the link between Bitbucket and my source is fine. The issue was that Jira was not excluding stale commits. Bitbucket does but not Jira. 

Fadoua Community Leader Dec 26, 2020

Yes I did see that on the issue in Jira showing twice the commit.

Let me google and see why is that happening.

Will get back to you

Best,

Fadoua

Fadoua Community Leader Dec 26, 2020

@ChuckieAJ 

Take a look at the following, the screenshot has more than one commit.

https://support.atlassian.com/jira-software-cloud/docs/view-development-information-for-an-issue/

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you