码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-04-25 18:12:33      阅读:120      评论:0      收藏:0      [点我收藏+]

标签:

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

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

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

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

git init就可以了!

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

标签:

原文地址:http://www.cnblogs.com/lovezbs/p/4456196.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!