读书人

osx停设置git使用goagent代理

发布时间: 2013-11-08 17:52:14 作者: rapoo

osx下设置git使用goagent代理
git config --global https.proxy 127.0.0.1:8087

?制定crt证书

git config --global http.sslCAinfo /***/***/goagent/local/CA.crt 

?然后就OK了。

?

原博文中的设置的是http.proxy,而我这么设置之后,却无法clone:

git clone https://github.com/****/***proj.git

Cloning into '***proj'...

error: RPC failed; result=22, HTTP code = 500

fatal: The remote end hung up unexpectedly

?

所以我只能去掉http.proxy,去掉http代理命令如下

git config --global --unset http.proxy

?重新设置https.proxy,这才OK的。

?

祝各位好运!

读书人网 >操作系统

热点推荐