1、有時Git誤操作執行 git clean -f 或者 在IDE 中誤刪代碼,可通過IDE進行恢復
2、以Eclipse爲例:選中誤刪文件所在目錄,右鍵 執行“restore from local history”。
參考:https://stackoverflow.com/questions/6267180/can-i-undo-a-git-clean-fdx
操作視頻http://i.imgur.com/XWNLOk5.gifv
1、有時Git誤操作執行 git clean -f 或者 在IDE 中誤刪代碼,可通過IDE進行恢復
2、以Eclipse爲例:選中誤刪文件所在目錄,右鍵 執行“restore from local history”。
參考:https://stackoverflow.com/questions/6267180/can-i-undo-a-git-clean-fdx
操作視頻http://i.imgur.com/XWNLOk5.gifv