美文网首页
git 遇到The remote end hung up une

git 遇到The remote end hung up une

作者: cyrilsun | 来源:发表于2017-11-24 16:52 被阅读0次

今天在公司clone一个项目时,发现没有拉下来,错误如下,刚开始以为是网络的问题,然后又clone了一下,还是报错,赶紧Google下

remote: Compressing objects: 100% (69361/69361), done.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

先给出解决方法,直接执行git命令:git config --add core.compression -1就可以了

git的服务器在客户端clone时会进行压缩,然后客户端会再进行解压,解压级别是-1到9,-1 以 zlib 为默认压缩库,0 表示不进行压缩,1..9 是压缩速度与最终获得文件大小的不同程度的权衡,数字越大,压缩越慢

相关文章

网友评论

      本文标题:git 遇到The remote end hung up une

      本文链接:https://www.haomeiwen.com/subject/nmsfbxtx.html