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”

Leave A Reply

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

You May Also Like

No, the forward navigation is currently not supported in Windows Phone 8. Q&A #42 – Is Forward Navigation supported in...
A few months back i had posted a Q&A on the Topic " What it takes to be a Good...
If you are a regular readers of the technical books , Apress is one of the publishers which comes in...