-- 第一步:查看代理
git config --global -l
-- 第二部:设置代理
git config --global http.proxy http://127.0.0.1:41091
git config --global https.proxy https://127.0.0.1:41091
这个是去掉代理,如果想去掉代理用下面命令即可
- 取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy