Last active
December 26, 2015 07:19
-
-
Save antespi/7114888 to your computer and use it in GitHub Desktop.
Discard changes in working tree
This file contains hidden or 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
Save changes to stash | |
===================== | |
# git stash save --keep-index | |
Discard stash | |
============= | |
# git stash drop | |
Discard changes done only in one file | |
===================================== | |
# git checkout path/to/file/to/revert | |
Discard changes done in all files | |
================================= | |
# git checkout -- . | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment