COMMIT
Remove last commit
git reset HEAD^ # remove commit locally
git push origin +HEAD # force-push the new HEAD commit
Remove last commit but keep files
COMMIT
Remove last commit
git reset HEAD^ # remove commit locally
git push origin +HEAD # force-push the new HEAD commit
Remove last commit but keep files
Edit your git config to add an entry for gui in the alias section
nano ~/.gitconfig
[alias]
gui = !sh -c '/usr/local/git/libexec/git-core/git-gui'
NEW