How do I discard changes in my working copy that are not in the index?
How do I discard unstaged changes in Git
De openkb
Sommaire |
Questions
Answers
Another quicker way is:
git stash save --keep-index
After that, you can drop that stash with a git stash drop command if you like.
Source
License : cc by-sa 3.0
http://stackoverflow.com/questions/52704/how-do-i-discard-unstaged-changes-in-git