Skip to content

Instantly share code, notes, and snippets.

@crilleengvall
Last active April 15, 2018 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save crilleengvall/5852988 to your computer and use it in GitHub Desktop.
Save crilleengvall/5852988 to your computer and use it in GitHub Desktop.
Undo a commit and aliasing it to 'git undo'
git config --global alias.undo 'reset --soft HEAD^'
git reset --soft HEAD^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment