edit commit comments in sourcetree after pressing commit

33,364

Solution 1

Just want to give more clarity to this old question with these simple pictures, although this is for the latest commit only (updated for SourceTree 2.5.2).

  1. Under 'Workspace', select 'File Status':

File Status

  1. Click the commit message box to expand it, then you will find 'Amend last commit' by clicking 'Commit options' at the bottom right:

Commit Message and Amend Last Commit

Solution 2

You can do this before pushing. There is a checkbox at the bottom left of the Commit dialog which says "Amend latest commit", when you check it the previous message will appear in the box and you can edit it, then hit Commit to modify it.

Share:
33,364
clankill3r
Author by

clankill3r

Updated on July 08, 2022

Comments

  • clankill3r
    clankill3r 11 months

    I added only 1 comment in the commit change. I didn't push yet. How can i add more comments to it? I'm a bit afraid to do things wrong.

    sourcetree