fatal: not a git repository (or any of the parent directories): .git

fatal: not a git repository (or any of the parent directories): .git

問題描述:

        在使用Git命令的時候,提示當前沒有.git這層目錄,所以Git命令設置無效

7208373-23bae27768f7789f.png

引入原因:

        當前的操作目錄中沒有.git文件,也就是說當前並不一個Git上的遠程倉庫目錄

解決方法:

初始化即可

git init
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章