Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
克隆git存储库失败_Git_Url_Git Clone - Fatal编程技术网

克隆git存储库失败

克隆git存储库失败,git,url,git-clone,Git,Url,Git Clone,当我尝试从存储库克隆以下内容时: git clone git://gitorious.org/qt/qt5.git qt5 我得到了这个错误: fatal: Unable to look up gitorious.org (port 9418) (This is usually a temporary error during hostname resolution and means that the local server did not receive a respon

当我尝试从存储库克隆以下内容时:

git clone git://gitorious.org/qt/qt5.git qt5
我得到了这个错误:

fatal: Unable to look up gitorious.org (port 9418) (This is usually a temporary error         during hostname resolution and means that the local server did not receive a response from an authoritative server. )
有什么问题吗

我的网络使用代理的另一件事,我已经设置好了:

 git config --global http.proxy http://192.168.0.7:8080

首先尝试使用https地址,而不是git地址(需要特殊端口)


替代方案可能很复杂(比如)

对我来说很有效。还有,为什么它会被标记?如果你通过一个代理,很可能你不允许在没有通过代理的情况下连接到外部世界,并且这个代理只支持HTTP/HTTPS请求(不是GIT)。因此,您可能应该使用url:
https://git.gitorious.org/qt/qt5.git
我很确定这是因为设置了代理,因为我已经在另一个没有代理服务器的地方测试了它,而且它可以工作,那么为git设置代理的正确方法是什么?!试试这个
git-config——全局url。https://github.com/.insteadOf git://github.com/
https://git.gitorious.org/qt/qt5.git