git 克隆git存储库失败

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14631594/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 08:07:01  来源:igfitidea点击:

Cloning git repository Failure

giturlgit-clone

提问by Mosi

When i try to clone following from repository:

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

git clone git://gitorious.org/qt/qt5.git qt5

i'm getting this error:

我收到此错误:

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. )

What's the problem?

有什么问题?

another thing that my network use proxy and i have already set it:

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

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

回答by VonC

Try first with an https address, rather than the git one (which needs a special port)

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

https://git.gitorious.org/qt/qt5.git

The alternative can be complex (like ssh port forwarding)

替代方案可能很复杂(如ssh 端口转发