There's ways to change the message from later commits:
git commit --amend # for the most recent commit git rebase --interactive master~2 # but requires *parent*
How can you change the commit message of the very first commit (which has no parent)?
The git commit --amend command is a convenient way to modify the most recent commit. It lets you combine staged changes with the previous commit instead of creating an entirely new commit. It can also be used to simply edit the previous commit message without changing its snapshot.
As of Git version 1.7.12, you may now use
git rebase -i --root
Documentation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With