//go back as manny commits as you need git reset --soft HEAD~4 git commit git push --force origin my_branch