How To Change Your Most Recent Git Commit Message

Last modified: 
Thursday, April 9th, 2015

If you made a mistake in your last git commit message and haven't pushed the changes yet, use --amend to correct and update the message.

git commit --amend -m "The corrected message goes here"

The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.