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 中的清理选项时清理了一个文件。我怎样才能找回那个文件?
我使用了以下命令: git clean path/file_01.py -i
然后我选择了: 4:问每个
最后,按下 'y' 而不是 'N' 是
git clean仅删除最初未被 git 跟踪的文件,因此没有 git-trick 可以在此类文件消失后恢复它。
git clean