git clone github的项目慢得可怕 让git走代理吧(前提你要有梯子)

设置代理

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 http.sslVerify false // 忽略证书错误

取消代理

git config --global --unset http.proxy 
git config --global --unset https.proxy
Last modification:January 6th, 2020 at 10:41 pm
If you think my article is useful to you, please feel free to appreciate