git 解决fatal: Not a git repository

原文:https://blog.csdn.net/u012306714/article/details/52571596

我用git add file添加文件时出现这样错误:

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

提示说没有.git这样一个目录,解决办法如下:

git init就可以了!

猜你喜欢

转载自www.cnblogs.com/shihaiming/p/9395028.html