git extensions undo last commit code example
Example 1: git undo last commit
$ git reset --soft HEAD~1
Example 2: how to remove commit in git extension
git reset --soft HEAD^ or git reset --soft HEAD~
$ git reset --soft HEAD~1
git reset --soft HEAD^ or git reset --soft HEAD~