无法从git.gnome.org克隆

时间:2015-02-13 07:15:04

标签: git github gnome

我正在开发一个Ubuntu操作系统。 我试过从git.gnome.org克隆几个存储库,比如这个 -

git clone git://git.gnome.org/newcomers-tutorial Cloning into 'newcomers-tutorial'... fatal: unable to connect to git.gnome.org: git.gnome.org[0: 209.132.180.184]: errno=Connection timed out

甚至尝试使用http:// -

git clone http://git.gnome.org/newcomers-tutorial Cloning into 'newcomers-tutorial'... fatal: http://git.gnome.org/newcomers-tutorial/info/refs not found: did you run git update-server-info on the server?

如果我从github克隆任何其他repo,则成功克隆。 如 -

git clone https://github.com/arduino/Arduino.git Cloning into 'Arduino'... remote: Counting objects: 53558, done. remote: Compressing objects: 100% (617/617), done. ^Cceiving objects: 11% (5996/53558), 23.67 MiB | 1.41 MiB/s

我在代理服务器后面工作,已经通过 -

设置了它
git config --global http.proxy $http_proxy

任何帮助?

1 个答案:

答案 0 :(得分:5)

git协议使用一个特殊的端口(9418),你在代理服务器后面工作,可能会被阻止。

对于http克隆,web page of the newcomers-tutorial repo提到 https 网址,而不是http网址:

git clone https://git.gnome.org/browse/newcomers-tutorial

请务必先设置您的https代理:

git config --global https.proxy $http_proxy