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


x

Interesting BlogPosts to read

First steps with Angular 2: 8 cool features by @josdirksen
I've been doing some work the last couple of weeks with Angular2. I really like it. Not just because...
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...