git reset --soft HEAD~2 # 2 being the 2 most recent commits git add . git commit -m "Some commit message" git push -f