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

时间:2023-03-09 06:31:04
使用github出了些问题?fatal: unable to access;Failed connect to github.com:8087;

使用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,成功了!