How to amend a committed message in Git?

You can amend a committed message in git by using the below command

git commit –amend

How to amend a committed message in Git?

The above command will open the editor which lets the users to change the most recently entered message.

You can also specify the new commit message with the command line directly as shown below.

git commit –amend -m “New commit message from ginktage”

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.
Pin It

Leave a Reply

Your email address will not be published. Required fields are marked *