使用git clone报错:Empty reply from server
报错如下:
$ git clone https://github.com/xxx.git
Cloning into 'xxx'...
fatal: unable to access 'https://github.com/xxx.git/': Empty reply from server
解决方法:
换通道!别用https了。
墙内墙外http,https通道不仅速度慢,也都有失败风险的。访问不到就返回空了!
比如你现在clone的项目地址是:
把https://换成git@,如下:
git@github.com:xxx.git
其中github.com根据本地.ssh配置定;
xxx是项目名称