One minute
Selectively Discard Changes From Git Work Tree
git checkout -p
or
git checkout --patch
Then decide what to do with each hunk in an interactive mode, like in git add -p
:
Discard this hunk from worktree [y,n,q,a,d,s,e,?]?
(type ? to see what each letter stands for)
Read other posts
comments powered by Disqus