Unable to clone from git.gnome.org

I am working on an Ubuntu OS. I tried to clone 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 successfully clones. For instance:

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 work behind a proxy server and already installed it -

git config --global http.proxy $http_proxy

Any help?

+3
source share
1 answer

The git protocol uses a special port (9418), which, you work as a proxy, will most likely be blocked.

Regarding http cloning, the repo webpage mentions https url, not the http code:newcomers-tutorial

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

Be sure to first install your https proxy:

git config --global https.proxy $http_proxy
+2
source

All Articles