您的位置:首页 > 其它

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

2016-03-03 19:13 323 查看
我用git add file添加文件时出现这样错误: fatal: Not a git repository (or any of the parent directories): .

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

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

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

git init

就可以了!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: