Skip to content

Instantly share code, notes, and snippets.

@TylerRockwell
Created October 14, 2015 14:22
Show Gist options
  • Select an option

  • Save TylerRockwell/defdbd0f6f7b96b2b9c6 to your computer and use it in GitHub Desktop.

Select an option

Save TylerRockwell/defdbd0f6f7b96b2b9c6 to your computer and use it in GitHub Desktop.
Git Messes
What command do you run if you want to discard all changes since your last commit?
git stash
What command do you use if you run git add and then want to revert it?
git reset
What command do you use if you run git commit and then want to revert it?
git checkout **previous commit id**
that other command that fixes detached head mode that I always have to google.
What command do you use if you run git push and then want to revert it?
git cry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment