GitHub Desktop has a nice feature named "Discard All Changes"
How do I do the same thing using Git CLI, but NOT use git stash?
GitHub Desktop has a nice feature named "Discard All Changes"
How do I do the same thing using Git CLI, but NOT use git stash?
Using:
git restore command:/That would be, from anywhere inside your repository:
git restore -SW :\
That would restore your working tree and index to HEAD content