[GitHub] git push的时候报错 fatal: unable to access 'http://github.com/xxx/xxx.git/': Recv failure: Connection reset by peer


参考了两种方法:

1. 解决fatal: unable to connect to github.com问题 http://blog.csdn.net/greenqingqingws/article/details/11808745
原因:
需要用https才能读到数据
解决方法:输入命令
git config --global url."https://".insteadOf git://

 

2. 使用github出了些问题?fatal: unable to access;Failed connect to github.com:8087; No error  https://www.zhihu.com/question/26954892/answer/34770821
通过:
git config --global http.proxy
查询到当前是否设置了代理,如果有则取消这个设置:
git config --global --unset http.proxy
然后再push即可

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM