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

git clone 报错

时间:2018-04-06 15:21:56      阅读:203      评论:0      收藏:0      [点我收藏+]

标签:res   exist   检查   代理服务   服务器   down   url   名称   解决   

1,问题

Cloning into ‘project-name‘...
ssh: Could not resolve hostname gerrit.firewinggames.com: nodename nor servname provided, or not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

大概意思就是无法访问对应URL上的代码仓库
不能解析对应的代理服务器,不是节点名称错误就是服务器名称错误

2,解决

下边报错说是让确定是否拥有权限,有误导性,看上边的错误信息能发现原因其实是 不能解析主机。所以应该检查路径,不行就查DNS。

我查了一些网上的答案发现都没有用,最后发现自己改了本地DNS,所以如果你也查无良策,检查路径后看下DNS吧。

git clone 报错

标签:res   exist   检查   代理服务   服务器   down   url   名称   解决   

原文地址:https://www.cnblogs.com/mingbai/p/cannotGitClone.html

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