#Mac 终端 连接Git 一直连接不上 cocopods 失败
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
在git里面设置为
$ git config –global http.proxy “127.0.0.1:9666”
或者
$ git config –global http.proxy “127.0.0.1:1080”
设置后,还是不行,后来改成了
$ git config --global http.proxy “localhost:1080”
后来可以连上了
如果连接不上
首先,查一下代理:
git config --global http.proxy
如果有就取消
git config --global --unset http.proxy
再查
git config --global https.proxy
如果有就取消
git config --global --unset https.proxy
试了,并没有用。
再用git,正常了,再查env|grep -i proxy ,代理没有了