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


Αυτός ο ιστότοπος χρησιμοποιεί το Akismet για να μειώσει τα ανεπιθύμητα σχόλια. Μάθετε πώς υφίστανται επεξεργασία τα δεδομένα των σχολίων σας.