我正在使用 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 克隆任何其他存储库,它就会成功克隆。
例如 -
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
有什么帮助吗?
git 协议使用特殊端口 (9418),如果您在代理后面工作,该端口可能会被阻止。
至于http克隆,的网页newcomers-tutorial repo https://git.gnome.org/browse/newcomers-tutorial/提到一个httpsurl,而不是 http 的:
git clone https://git.gnome.org/browse/newcomers-tutorial
确保首先设置您的 https 代理:
git config --global https.proxy $http_proxy
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)