git rebase -i --root --exec 'git commit --amend --reset-author --no-edit'
# 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 commit --amend --author="Author Name <email@address.com>" --no-edit
git rebase -i HEAD~2
git commit --amend --author="Cesar Bueno <cesar.bueno.tx@gmail.com>"
git rebase --continue
Reset your username to the config globally: git config --global user.name example.
Reset your email to the config globally: git config --global user.email example@email.com.
Now reset the author of your commit without edit required: git commit --amend --reset-author --no-edit.
git commit --author="soft hunt <softhunt@softhunt.net>"
$ git commit --amend --author="John Doe <john@doe.org>" --no-edit
$ git rebase --continue
git rebase -i YOUR_SHA -x "git commit --amend --author 'New Name <new_address@example.com>' -CHEAD"