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

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

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

#先檢查一下git狀態
git status
#經過以下命令從新分離出文件
git checkout -f HEAD
相關文章
相關標籤/搜索