fatal: unable to access 或者 fatal: could not read from remote repository

今天发现一个很有意思的问题,使用git bash here 去拉取代码的时候,用clone with ssh或者是clone with http的链接都不好使,均报错,百思不得其解啊,为此还花了点时间.

报错信息分别如下:
LII@Lii MINGW64 /i/work/ ABCDcode
$ git clone http://7d8032432a52/mogu/code/mogu-back.git/
Cloning into ‘mogu-back’ …
fatal: unable to access ‘http://7d8032432a52/mogu/code/mogu-back.git/’ : Could not resolve host: 7d8032432a52

LII@Lii MINGw64 /i/work/ ABCDcode
$ git clone git@7d8032432a52:mogu/code/mogu-back.git
Cloning into ‘mogu-back’… .
ssh: Could not resolve hostname 7d8032432a52: Name or service not known
fatal: could not read from remote repository.
Please make sure you have the correct access rightsand the repository exists.

不知道是哪里有问题,估计是搭建私服的gitLab的时候有点问题吧?

最后发现,用浏览器地址栏的URL,直接去git bash here
输入命令+URL
git clone http:/127.0.0.1/mogu-back
成功拉取项目代码。

图片存在信息,没附上带有错误信息的贴图。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值