Github 错误合集:Failed connect to github.com:8080 || Failed connect to github.com:443; No error

来源:互联网 发布:不用网络的游戏排行榜 编辑:程序博客网 时间:2024/06/06 07:01

文/skay 

地址:http://blog.csdn.net/sk719887916/article/details/40541199


开发中遇到github无法pull和push代码问题,原来gitbub需要本地代理


因此看错误图



解决步骤:

查看git代理设置 
git config --global http.proxy 

如果设置代理则显示一串代理地址



查询到当前设置了代理,所以取消代理设置: 
git config --global --unset http.proxy 


再查询,如果无代理,即可Push


二 内网限制


  1检查 github.com

如果你所在的公司将gitbub端口限制了请检查是否Ping通


cmd  :ping github.com  


如果显示无法ping通,那么贵电脑所在的网络是无法连接github的

因此给git设置代理,这个代理是你公司运维提供的

设置代理


git config --global http.proxy http://loalhost: 8081 

我公司代理

loalhost: 8081 





1 0
原创粉丝点击