Edit the root commit in Git?

13ren picture 13ren · Jan 22, 2010 · Viewed 43k times · Source

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)?

Answer

ecdpalma picture ecdpalma · Jan 31, 2013

As of Git version 1.7.12, you may now use

git rebase -i --root

Documentation