How to rewrite the most recent commit message of a commit that has not been pushed


Type git commit --amend and press then Enter key.
This will open a text editor to edit the commit message.
After your done, save the file and commit the changes.

Note: Changing the commit message will change the commit ID as well as the commit message is part of the commit itself.

This post is also available in: Greek

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.