git revert last commit git extension code example Example: how to remove commit in git extension git reset --soft HEAD^ or git reset --soft HEAD~