Combine the first two commits of a Git repository
You might have this need when just initializing a Git repository. I tried rebase -i HEAD^^ before and got an error. Today I finally found the correct way.
1 | git rebase -i --root |
Then change the pick of the second commit to fixup, save and exit.
Reference:
Combine the first two commits of a Git repository?