使用github出了些问题?fatal: unable to access;Failed connect to github.com:8087;

2023-03-05,,

使用github出了些问题?fatal: unable to access;Failed connect to github.com:8087; No error

我今天使用git push origin master的时候,提示我fatal: unable to access 'https://XXXX@github.com/XXX/XXX' Failed connect to github.com:8087; No error

在谷歌上查了很多办法都没有解决,有的方法是https连接模式改成ssh模式,或者是修改代理,比如:
git config --global http.proxy 192.168.1.1:8083 
但是都没有解决我的疑惑,然后我发现了一个问题,就是我根本没有使用代理,所以这样登录方式肯定会有问题。 

我通过: 
git config --global http.proxy 
查询到当前设置了代理,所以我取消这个设置: 
git config --global --unset http.proxy 
再查询,已经没有了代理,然后再push,成功了!

 

使用github出了些问题?fatal: unable to access;Failed connect to github.com:8087;的相关教程结束。

《使用github出了些问题?fatal: unable to access;Failed connect to github.com:8087;.doc》

下载本文的Word格式文档,以方便收藏与打印。