Site icon Bytefreaks.net

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

Advertisements

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: Αγγλικα

Exit mobile version