Tuesday, August 4, 2009

Changing last git commit message

To change the last commit message in git use the following command

git commit -amend

It will open a text editor(in my case vim) with the old message that is going to be edited. Modifying,saving and quiting the editor will update the old commit message.

No comments:

Post a Comment