解决git push老是443报错的问题

2,636 阅读1分钟

GitHub有时候会登不上去,所以一般都会开启梯子,加速访问。
但是问题来了,明明是加速访问,Github的页面打开速度也确实快了,但是在push提交代码的时候,却总是443报错。

image.png 打开设置,查看开启代理之后的ip地址和端口

image.png 设置代理:

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

注意ip地址和端口改成你自己的,并且是在开代理的情况下提交。如果不开代理提交出错的话,要么就开启代理,要么就取消设置代理:

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