Subscribe to our YouTube Channel for more Videos

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”

Senthil Kumar B
Senthil Kumar is a former Microsoft MVP (Most Valuable Professional). He is a Co-Author of the book "Windows 10 Development Recipes using JavaScript and CSS" for Apress Publication. He is a technical presenter, blogger, mentor and a Geek.  Senthil is a regular speaker is various local user groups. He has presented at conferences like Great Indian Developer Summit (GIDS) & Microsoft DevCamps. You can reach out to him via his Twitter handle @isenthil.