Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot clone from git.gnome.org

Tags:

git

github

gnome

I am working on an Ubuntu OS. I have tried cloning several repositories from git.gnome.org such as this -

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

And even tried with 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?

whereas if i clone any other repo from github it is successfully cloned. Such as -

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

I am working behind a proxy and already have set it by -

git config --global http.proxy $http_proxy

Any help?

like image 865
Krist Avatar asked Feb 13 '15 07:02

Krist


1 Answers

The git protocol uses a special port (9418) which, is you are working behind a proxy, is likely to be blocked.

As for http cloning, the web page of the newcomers-tutorial repo mentions an https url, not an http one:

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

Make sure to set your https proxy as well first:

git config --global https.proxy $http_proxy
like image 193
VonC Avatar answered Sep 30 '22 04:09

VonC