Amend a commit message with git

To amend the most recent commit message in git,

git commit --amend
which brings up the editor to edit the commit message, or
git commit --amend -m "your new message"
to use "your new message" as the commit message.

git rebase --interactive

Copyright © Ben Bullock 2009-2023. All rights reserved. For comments, questions, and corrections, please email Ben Bullock ( or use the discussion group at Google Groups. / Privacy / Disclaimer