how to remove commit in git extension

Shell
git reset --soft HEAD^ or git reset --soft HEAD~

Source

Also in Shell: