家里的宽带访问github非常慢,git clone
一直维持在10k/s
,实在难受。试探性的搜了一些git代理,没想到还真有。。。
设置方法
1 2 3 4 5 6 7 |
# 设置代理 git config --global http.proxy 'socks5://127.0.0.1:1080' git config --global https.proxy 'socks5://127.0.0.1:1080' # 取消代理 git config --global --unset http.proxy git config --global --unset https.proxy |
或者
1 2 3 4 |
# 只对github.com代理 git config --global http.https://github.com.proxy socks5://127.0.0.1:1080 # 取消代理 git config --global --unset http.https://github.com.proxy) |
评论