<分区>
Possible Duplicate:
How do you remove untracked files from your git working copy?
是否可以告诉 git 删除未跟踪的文件?主要是类似于重置的东西?
例子:
git checkout -- index.php <-- revert my file
git checkout -- master <-- this would revert the entire repo back to the last commit on master, removing (deleting) any and all untracked files as well as reverting committed ones.
我知道这在 shell 上很简单。但我想知道这是否可以在 Git 中完成?