Can I override working copy by index content?

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?


你可以使用git-checkout

git checkout -- .
链接地址: http://www.djcxy.com/p/9818.html

上一篇: 如何恢复未提交的更改,包括文件和文件夹?

下一篇: 我可以通过索引内容覆盖工作副本吗?