无法从git.gnome.org克隆

Kri*_*ist 5 git gnome github

我正在使用Ubuntu OS。我已经尝试从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克隆任何其他仓库,则它已成功克隆。如 -

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
Run Code Online (Sandbox Code Playgroud)

有什么帮助吗?

Von*_*onC 5

git协议使用一个特殊的端口(9418),如果您在代理后面工作,则可能被阻止。

至于HTTP克隆时,该网页页面newcomers-tutorial回购提到的HTTPS URL,而不是HTTP之一:

git clone https://git.gnome.org/browse/newcomers-tutorial
Run Code Online (Sandbox Code Playgroud)

确保先设置https代理:

git config --global https.proxy $http_proxy
Run Code Online (Sandbox Code Playgroud)