Created
June 9, 2012 07:16
-
-
Save bom-d-van/2899929 to your computer and use it in GitHub Desktop.
Discard unstaged changes in git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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