- find out the commit a point earlier than the one you want to modify
- execute the command:
git rebase -i <earlier_commit>
- change the text from
pick
toedit
in the list of the commits - to change the author of the commit:
git commit --amend --author="Author Name <[email protected]>"
git rebase --continue
git push -f