62

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

clankill3r
  • 9,146
  • 20
  • 70
  • 126

2 Answers2

116

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

Ali Beadle
  • 4,486
  • 3
  • 30
  • 55
Windo
  • 1,526
  • 1
  • 12
  • 8
  • 3
    Pictures for the win :D – clankill3r Mar 31 '15 at 08:20
  • 3
    Hehe Thanks, I found it easier with pictures – Windo Apr 13 '15 at 04:45
  • 10
    There is no "Working Copy" in new SourceTree (mac, 2.2.4). Now you need to select WORKSPACE > File status (or just press ⌘1), the "Commit options…" will be there. Note: you may need to click "Commit message" field to expand it and show "Commit options…" – zxcat Mar 27 '16 at 17:28
7

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.

Xarcell
  • 2,011
  • 6
  • 33
  • 65