Skip to content

Instantly share code, notes, and snippets.

View marcelombc's full-sized avatar

Marcelo Conceição marcelombc

View GitHub Profile

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

@marcelombc
marcelombc / git_gui.md
Last active June 16, 2020 10:00
Setup git gui

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