美文网首页
git clone 报错

git clone 报错

作者: 名白 | 来源:发表于2018-04-06 13:01 被阅读0次

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 报错

      本文链接:https://www.haomeiwen.com/subject/vwxshftx.html