1. 程式人生 > >git clone 後誤刪除了分離出來的文件怎麽恢復?

git clone 後誤刪除了分離出來的文件怎麽恢復?

誤刪除 clas git IT 通過 one 文件 pre 刪除

git clone 後,會分離出項目的文件。

誤刪除了,可以使用以下命令恢復:

#先檢查一下git狀態
git status
#通過如下命令重新分離出文件
git checkout -f HEAD

git clone 後誤刪除了分離出來的文件怎麽恢復?