Possible Duplicate:
How do you discard unstaged changes in git?
I know that when I git add
tracking content to repository, git copy/update content of its object stores. If I change my content continuously without git add
again, and I regrets all those changes and I want my last snapshot in index back to my working copy, how can I do?
You can use git-checkout
for this:
git checkout -- .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With