git clone 後,會分離出項目的文件。git
誤刪除了,可使用如下命令恢復:spa
#先檢查一下git狀態 git status #經過以下命令從新分離出文件 git checkout -f HEAD