- Fix your email address in git config
git config user.name "Your Name"
git config user.email "[email protected]"
git submodule foreach --recursive 'git config user.name "Your Name" && git config user.email "[email protected]"'
- Rebase
EDITOR=vim git rebase -i HEAD~1
-
In the editor, mark the commit as 'edit' then save and exit the editor
-
Do an amend that resets the author now that your address is changed:
EDITOR=vim git commit --amend --reset-author
- Finish with a rebase:
git rebase --continue
Git should say:
# Successfully rebased and updated refs/heads/master.