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

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

时间:2018-08-02 02:15:01      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:pos   net   add   sdn   .net   font   alt   init   b2c   

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

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

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

git init就可以了!

也就是说,在命令行敲入git init回车之后,再重新执行添加文件的命令即可。

如下图所示:

技术分享图片

从图中可以看出,问题已经解决。

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

标签:pos   net   add   sdn   .net   font   alt   init   b2c   

原文地址:https://www.cnblogs.com/curo0119/p/9404724.html

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