Short post, I did a few steps to clean up some incorrect git authors (from other accounts on my same computer or different email addresses) on some of my Github repos:
First, find the commit id in Github that you want to erase:
1 2 3 4 5 6 7 8 9 10 11 12 13
git rebase -i ede610e # this opens a commit history in vi. Press 'i' for insert mode and change lines 'pick' to the word 'edit' # save and quit # now type: git commit --amend --author="Gerry Williams <email@example.com>" --no-edit # now type: git rebase --continue # keep doing this over and over # when done: git push -f
Check Github and all commits should be made by the author specified now.