【已解决】is found locally with remote(s): fatal: Not a git repository

git submodule add *******************************************************
A git directory for 'adsplugin' is found locally with remote(s):
fatal: Not a git repository: '.git/modules/adsplugin'
If you want to reuse this local git directory instead of cloning again from
  git@git.haizhebar.com:jikai/adsplugin.git
use the '--force' option. If the local git directory is not the correct repo
or you are unsure what this means choose another name with the '--name' option.

在一次偶然的换皮工作中...由于git经验并不是很丰富的我 就乱七八糟和这个八哥不期而遇了

幸好我机制的一笔找同事某帅帮我解决了

下面分享一下解决流程

第一步 不要慌 点个煤气罐冷静一下(备份好数据 怎么搞都行 打个压缩包)

第二步 百度搜答案 google搜(未果 写的都不是很对 或者不是很详细)

第三步 找个会的同事  翻译后是

git submodule add git@git.haizhebar.com:jikai / adsplugin.git
'adsplugin'的git目录是在本地找到的远程(s):
致命的:不是一个混帐存储库:'.git / modules / adsplugin'
如果你想重用这个本地git目录,而不是再次克隆
  git@git.haizhebar.com:吉凯/ adsplugin.git
使用'--force'选项。 如果本地git目录不是正确的回购
或者你不确定这意味着用'--name'选项选择另一个名字。

第四步  删除.git\modules 的 
adsplugin

文件夹  

整个删除 一点都不要慌  

然后再拉下来就可以了


  • 4
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 5
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

安果移不动

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值