[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即可

 

相关内容

    暂无相关文章