SourceTree - How to edit a commnt?
Asked by Yukiko Takiguchi:

I want to edit a comment that was written with "commit" phase.

I know git allow to dothat, so how to do that on SourceTree?


Answers:
author: stevestreeting
body: In the commit window, check the box at the bottom labelled 'Amend last commit'. You can change the message and also the content if you want, just make sure you haven't pushed the commit to anyone else yet.

comments: author: Sanchit Sahay
body: So we cannot edit comments if its already pushed?

I understand there is possibility someone else would be using the pushed version, but what if its a private repository. No one expect I is using the repository. Can I edit the comments now?


author: Myung
body: In SourceTree version 3.2.6 (latest version as of Nov 21, 2019) the amend command is not "Amend Last Commit" but "Amend Latest Commit". So, it allows the user to change the most recent commit text.

There should be a way to change any previous commit text. Also, if we select the command by mistake how do we cancel it?


author: ssegga
body: I have been scratching my head trying to figure out where to find the commit options! To save other folks time here are afew extra screenshots:

1.ammend_commit_msg_2.png

2.

ammend_commit_msg_3.png

3.

ammend_commit_msg_4.png

I am using sourceTree for windows version 1.6.18.0.

[](https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-How-to-edit-a-commnt/qaq-p/407609?attachment-id=4907){#link_116d4faef6762e}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/12202/1/ammend_commit_msg_4.png){#display_116d4faef6762e_0}  
[](https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-How-to-edit-a-commnt/qaq-p/407609?attachment-id=4908){#link_116d4faef6762e_0}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/12202/2/ammend_commit_msg_3.png){#display_116d4faef6762e_2}  
[](https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-How-to-edit-a-commnt/qaq-p/407609?attachment-id=4909){#link_116d4faef6762e_1}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/12202/3/ammend_commit_msg_2.png){#display_116d4faef6762e_4}


author: Herwindo Artono
body: Just want to give more clarity to this old question (![laugh](/html/@BEA1CC333F4D830F5303329D7DC07DE4/images/emoticons/laugh.png "laugh")) with these simple pictures, although this are only for last commit

1. Make sure you're on working copy

Screen Shot 2015-03-31 at 8.07.34 AM.png

2. You will find "Ammend last commit" by clicking "Commit options" at bottom right

Screen Shot 2015-03-31 at 8.11.05 AM.png

[](https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-How-to-edit-a-commnt/qaq-p/407609?attachment-id=9351){#link_116d4fb44bd088}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/12201/1/Screen%20Shot%202015-03-31%20at%208.11.05%20AM.png){#display_116d4fb44bd088_0}  
[](https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-How-to-edit-a-commnt/qaq-p/407609?attachment-id=9352){#link_116d4fb44bd088_0}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/12201/2/Screen%20Shot%202015-03-31%20at%208.07.34%20AM.png){#display_116d4fb44bd088_2}


author: Virginia Weidhaas
body: Hey Priscilla, had the same question today. The Commit Window is simply the window that pops open when you click on "Commit" ( top left). Hope that helped!


author: Priscilla Corbett
body: Hi Steve, I'm really new to SourceTree/web development...I'm not sure what the commit window is or how to navigate there. Could you walk me through it? Thanks