git rebase -i HEAD~5 put edit in front of each commit to edit Then for each commit git commit --amend --author="Your Name [email protected]" or if correct email and user in global config git commit --amend --reset-author