解决git clone下载速度过慢的问题

从github clone代码, 奇慢, 有时只有几K, 设置完代理直接起飞

设置代理

1
2
3
//1080 为本地ss代理端口
$ git config --global http.proxy http://127.0.0.1:1080
$ git config --global https.proxy https://127.0.0.1:1080

取消代理

1
2
$ git config --global --unset http.proxy
$ git config --global --unset https.proxy