【知乎】github,Empty reply from server?

http://www.zhihu.com/question/26717343
 
问:用hexo搭了个blog,之前一直正常,最近在deploy的时候无法连接到github了。

fatal: unable to access ‘https://github.com/xxxxx’: Empty reply from server.

请问这是怎么回事?

 
答:换通道吧。别用https了。墙内墙外http,https通道不仅速度慢,也都有失败风险的。访问不到就返回空了。具体做法如下:

比如现在你的repo地址是:
https: //github.com/xxx/xxx.github.io.git 
那就把https://换成git@,如下:
git@github.com:xxx/xxx.github.io.git

xxx是你的github名称。
原文地址:https://www.cnblogs.com/linxd/p/4597468.html