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协议是不走代理的
2 comments
没梯子怎么办
自己谷歌自行解决。