Git恢复忽略文件,使用git clean删除所有忽略文件-fX
答
如果那些被忽略的文件以前从未添加到索引(但只有私有的,本地到您的回购),那么没有“混帐方式”让他们回来。
你将不得不使用一些磁盘文件分析程序来尝试和恢复它们。
另外,如果您使用的是像Eclipse这样的IE,请检查它的local history might still have a trace of those files(为您to restore)。
可能重复的[我可以撤消\'git clean -fdx \'?](http://stackoverflow.com/questions/6267180/can-i-undo-a-git-clean-fdx) –