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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章