git rebase -i @~9 # Show the last 9 commits in a text editor pick e to edit, save and close file git commit --amend #make changes git rebase --continue