// display git commit log $ git log --pretty=oneline --abbrev-commit// show last two commit and open in your default editor// then delete second commit line and save it$ git rebase -i HEAD~2
↧
Answer by Shajed for Delete commits from a branch in Git
↧