Readonly Readonly - 3 months ago 9
Git Question

How do you discard unstaged changes in Git?

How do I discard changes in my working copy that are not in the index?

Answer

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.

Comments