【Linux】git clone报错fatal: unable to access ‘https://github.com/xxx.git/‘: Encountered end of file

目录

1、问题

2、解决

3、参考


1、问题

git clone代码时突然报错...貌似时不时遇到这个问题,这次遇到了准备简单mark下

git clone https://github.com/xxx.git

报错
fatal: unable to access 'https://github.com/xxx.git/': Encountered end of file

2、解决

git clone http://github.com/xxx.git

 将https改为http成功了,据说也可以改成git尝试(我改成git无用...)

原因不明,奇奇怪怪,ORZ

但其实还有一个笨但简单的方法,那就是将代码下载下来,直接传到服务器上,哈哈哈

3、参考

解决fatal: unable to access 'https://github.com/amazixngTest/xaisite-Plaxm.git/': Encountered end of - 知乎

其他可参考(未尝试)

猜你喜欢

转载自blog.csdn.net/lj2048/article/details/127267979