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.

Leave a Reply


Interesting BlogPosts to read

Extended WPF Toolkit - 2.8.0
What's new in v2.8 Community Edition? (Released May 6, 2016) Hot on the heels of last month's v2.7.0...
Continuous Affect Rating and Media Annotation (CARMA)
CARMA is a media annotation program that collects continuous ratings from researchers or study parti...
Bang Wallpaper Plus - Download latest Bing Wallpaper
Are you a Windows 7 , Windows 8.1 or Windows 10 user and looking for a way to download latest bing w...