0
這是git status
輸出:根目錄中刪除,我不知道爲什麼
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: FreeCodeCamp
no changes added to commit (use "git add" and/or "git commit -a")
FreeCodeCamp
是我的Git項目的根目錄,因此我不能執行任何git命令。我不知道這是怎麼發生的,但是知道我的常用git命令是什麼可能會有幫助。定期,我只需將文件添加到我的git repo,然後在一天結束時將它們推送到遠程。
有誰知道這是怎麼發生的?
非常感謝! –
你能想到發生這種事的原因嗎? –
@SalP。,它不太可能是Git命令。例如,像'git rm'這樣的東西,也會進行刪除。任何會刪除該目錄或將其移動到別處的東西(例如文件管理器中的錯誤)都可能導致這種情況。 – Chris