jdana
asked on
git stash -u (git stash --include-untracked) - Best way to discard uncommitted changes?
I found a link (http://stackoverflow.com/q uestions/2 2620393/re move-local -git-chang es) that indicates that git stash –u will discard all file changes and get me back to the last commit. I’ve tried it. It seems to work. Yet the command doesn’t seem consistent with Git’s intent for git stash (http://git-scm.com/docs/gi t-stash) Is git stash –u the best way to accomplish a discard?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Wow. What a response. Along with git stash and git reset --hard, git clean is now in my toolkit.
Have a great weekend
J