Ways To Undo Mistakes In Git
A rocky start: discard unstaged changes
You decided to make some changes to a file, but halfway through you thought to yourself: "Nah, I’d better start over before I reach a dead-end!"
COPY
COPY
$ git checkout --
If your files are unstaged (you can ...
ganesh.in2 min read