Skip to content

Instantly share code, notes, and snippets.

@blackymetal
Created July 4, 2013 15:02
Show Gist options
  • Save blackymetal/5928496 to your computer and use it in GitHub Desktop.
Save blackymetal/5928496 to your computer and use it in GitHub Desktop.
Undo Git changes
This will unstage all files you might have staged with git add:
git reset
This will revert all local uncommitted changes (should be executed in repo root):
git checkout .
This will remove all local untracked files, so only git tracked files remain:
git clean -fdx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment