21

I need to edit my message/comment on a commit that I have not pushed.

I am using Git Extensions.

Help.

PS - Also, how do I edit my message after I push my commit?

Marwan مروان
  • 2,163
  • 8
  • 30
  • 40

2 Answers2

33

If you go into the Commit screen, there should be a checkbox that says "Amend Commit" at the bottom, as can be seen below:

picture.

WillB3
  • 418
  • 1
  • 7
  • 7
  • Thank you. Worked perfectly for me to amend the immediately previous wrong commit message – Karthik Nov 09 '20 at 16:13
  • I did it and then I click on "Commit & push" and a popup window opened saying something about perform different merge options.... I worried and I cancelled it but it created a new commit afterwards. Fortunately I could reset it. So I don't see that it is working. Please detail more the steps to follow. – Willy Aug 04 '22 at 16:31
2

commit --amend can be useful, see more about this here

Melvinr
  • 514
  • 2
  • 8