GitHub clone时报错unexpected disconnect while reading sideband packet,early EOF

GitHub clone时报错unexpected disconnect while reading sideband packet,early EOF_第1张图片
网上给出的解决方案如下:

git config --global core.compression 0
然后使用depth这个指令来下载最近一次提交

git clone --depth 1 <repo_URI>
然后获取完整库

git fetch --unshallow 
最后pull一下查看状态,问题解决

git pull --all

然而并不起作用,因为要clone的这个库实在是太大了,我只需要里面的一个文件夹下的内容,所以换一种方式会更快。

进入gihub编辑模式

GitHub clone时报错unexpected disconnect while reading sideband packet,early EOF_第2张图片

download指定文件夹

GitHub clone时报错unexpected disconnect while reading sideband packet,early EOF_第3张图片

查看文件夹

GitHub clone时报错unexpected disconnect while reading sideband packet,early EOF_第4张图片
速度很快,再也不用担心连接中断了!不过那个问题还是存在,如果我真的需要download这整个项目,依旧会在中途连接失败。

如何git clone 大型仓库

用码云中转一下,通过码云会压缩不少。

你可能感兴趣的:(前端开发,工具,前端,github)