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 clean -f。有没有办法撤消清理或重新添加那些未跟踪的文件?
git clean -f
如果您的文件已被 Git 清理,那么 Git 不会首先跟踪它们。不幸的是,您只能使用其他任何方法从备份中恢复文件。
这不是 Git 可以帮助您解决的问题。