解决办法
第一步(取消代理):
git config --global --unset http.proxy
git config --global --unset https.proxy
第二步(更新DNS):
ipconfig /flushdns
第三步(设置代理):
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
上方的127地址和端口,自行去本机的网络代理那边复制。
如果还是无效,可以打开你的
.gitconfig
,一般在C盘的用户下,看看在[http]下是否有proxy,如果没有,添加上即可。
- Post link: https://www.godhearing.cn/github-push-chao-shi-jie-jue-ban-fa/
- Copyright Notice: All articles in this blog are licensed under unless otherwise stated.