# Changes the username and email of all commits from the start.
git rebase -i --root -x "git commit --amend --author='YOUR_USERNAME <user@example.com> --no-edit'"
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
git rebase -i YOUR_SHA -x "git commit --amend --reset-author -CHEAD"
git rebase -i YOUR_SHA -x "git commit --amend --author 'New Name <new_address@example.com>' -CHEAD"