【发布时间】:2015-12-15 01:44:57
【问题描述】:
我使用以下方式在我的 linux 机器中设置代理。
export HTTP_PROXY=http://proxy.xxxxxx.com
git config --global http.proxy $HTTP_PROXY
但是下面的错误还是发生了。
[root@xxxxxxx cnpm]# git clone git://github.com/cnpm/cnpmjs.org ./cnpmjs.org
Cloning into './cnpmjs.org'...
fatal: unable to connect to github.com:
github.com[0: 192.30.252.129]: errno=Connection timed out
ps:在我们公司,IE代理使用http://proxy.xxxxxx.com设置,我可以手动下载IE中的git项目。
【问题讨论】:
-
尝试使用http/https而不是git://,可能是git协议被屏蔽了。