Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我想回滚目录中的更改时,我习惯这样做:
$ git checkout path/to/dir/
但是现在我需要删除在该目录中创建(未修改)的文件,并且结帐不起作用。我能做些什么?
git clean -f或者git clean -f -d如果您还想删除目录。来源 另请查看官方文档
git clean -f
git clean -f -d