Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I override working copy by index content? [duplicate]

Tags:

git

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?

like image 335
naive231 Avatar asked Nov 25 '12 11:11

naive231


1 Answers

You can use git-checkout for this:

git checkout -- .
like image 112
ThiefMaster Avatar answered Nov 04 '22 13:11

ThiefMaster