git遇到错误: Failed connect to github.com:443

git遇到错误: Failed connect to github.com:443


1 错误原因

我是在git push -u origin master时遇到的这个错误

2 解决方式

查询代理(我通过下面查询代理其实并没有返回相关的信息)

git config --global http.proxy

取消代理:查询到当前设置了代理,所以我取消这个设置:

git config --global --unset http.proxy
再查询,已经没有了代理,然后再push,成功了!

之后我再push是没有出现任何问题啦

3 其他方式

这个问题一般可能还是由于代理导致的,如果上面的方法没有解决你的问题,你可以参考我的另外一篇博客:https://blog.csdn.net/weixin_41010198/article/details/87929622

或这其他的,例如:https://blog.csdn.net/lyc_stronger/article/details/51954852

Good luck !

在这里插入图片描述


在这里插入图片描述


在这里插入图片描述
♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠

猜你喜欢

转载自blog.csdn.net/weixin_41010198/article/details/100095212
今日推荐