Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
deleted: public/index.html
deleted: public/CSS/1.css
deleted: public/CSS/2.css
deleted: public/CSS/3.css
deleted: public/CSS/4.css
我不小心刪除了文件。我怎樣才能恢復他們?恢復未添加/提交的文件
'git的結帳public'可能是你想要的東西。我確信這個問題是一個騙局,但我懶得去尋找原創。 – larsks
「(使用」git checkout- ...「放棄工作目錄中的更改)」 –
Evert
可能的[在Git存儲庫中還原已刪除的文件夾]的副本(http://stackoverflow.com/questions/30875205/restore -a刪除的文件夾-IN-A-混帳回購) –