报错基本都是超时或者路由不到目地地址。
因为浏览器或者系统的代理设置,可能不会设置到git。具体的解决方法:
(1)设置socket的代理:
apt-get install polipo
polipo socksParentProxy=localhost:5678
(2)设置http的代理:
export http_proxy=127.0.0.1:1234
export https_proxy=127.0.0.1:1234
或者
git config --global http.proxy http://localhost:1234
git config --global https.proxy http://localhost:1234
其中5678端口或者1234端口,为实际的浏览器或者系统的代理设置端口。