解决方法
查找Internet属性,选择“连接”那个选项,然后再点局域网设置,就可以看到代理端口号和地址
执行下面命令(注意改端口号是你自己的!!!)
git config --global http.proxy http://127.0.0.1:6152
git config --global https.proxy http://127.0.0.1:6152
搞定收工 over
如果想取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
如果有内网gitlab
一般是内网gitlab是http,而github是https。
所以只需要代理https的部分。
因为如果代理了内网http的,会造成内网gitlab提示503报错
同上(注意改端口号是你自己的!!!)
git config --global https.proxy http://127.0.0.1:6152