how to change the commit message in source tree

i had put a wrong JIRA task number in the commit message and committed and pushed the changes to bitbuket using source tree,  so now i want to change the committed message.  

1 answer

You need to amend the commit (press commit and then choose amend from the commit options above the commit message).

Afterwards, you need to force push to the server, because you are rewriting history. You cannot do this with SourceTree and the server might also stop you from doing it, because it is a potentially destructive operation.

Yes, and if other users have pulled your changes, their workflow will be disrupted as well. Stackoverflow already has information on how they can recover. Please make sure to read both answers to that question:

Suggest an answer

Log in or Sign up to answer
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

984 views 2 3
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you