使用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://github.com/xxx.git

把https://换成git@,如下:

git@github.com:xxx.git

其中github.com根据本地.ssh配置定;

xxx是项目名称


免责声明!

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



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