git clone github的项目慢得可怕 让git走代理吧(前提你要有梯子,我的ss-local代理端口是1080,如果不同请修改以下1080)

设置代理

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

注意:这样设置的代理一定要https协议的 git协议是不走代理的

Last modification:March 5, 2020
If you think my article is useful to you, please feel free to appreciate