Skip to content

Instantly share code, notes, and snippets.

@bom-d-van
Created June 9, 2012 07:16
Show Gist options
  • Save bom-d-van/2899929 to your computer and use it in GitHub Desktop.
Save bom-d-van/2899929 to your computer and use it in GitHub Desktop.
Discard unstaged changes in git
# For a specific file use:
git checkout path/to/file/to/revert
# For all unstaged files use(Make sure to include the period at the end.):
git checkout -- .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment