1. 1. 为给git设置代理

为给git设置代理

通过软件形式为git设置代理

命令(端口改为自己的端口):

git config --global https.proxy http://127.0.0.1:1083
git config --global https.proxy https://127.0.0.1:1083

当切换代理端口,需要取消代理时候

git config --global --unset http.proxy
git config --global --unset https.proxy