How to discard staged changes in Git
My question is related to that one: git-new-workdir: Commit in working tree A causes bogus changes in tree B. I use git-new-workdir to have multiple working directories from the same Git repository. Usually, I have work on different branches in each working directory, but it may happen that I commit in branch from a given working directory, while another working directory is a checkout of the same branch. When that happens, the second working directory gets staged changes that are the reverse of the commit I just did. Now comes my question... How can one discard staged changes, without discard
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.