git clone 或者是vscode clone 时遇到the remote end hung up unexpectedly

复制代码
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

使用git clone总是报错

查看原因有三种可能:要么是缓存不够,要么是网络不行,要么墙的原因。

如果是网络不行,可以配置git的最低速度和最低速度时间:

复制代码
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999

【补充】文件太大的解决方法:

当clone或者push git项目时,文件太大也会出现fatal: The remote end hung up unexpectedly

此时需要修改.gitconfig配置文件,打开终端,执行指令:

git config http.postBuffer 524288000

将postBuffer的缓存设置为500M即可。

参考 https://blog.csdn.net/Cai_deLong/article/details/115255735

相关推荐
小兔崽子去哪了11 分钟前
Git 专题
git
金米kk23 分钟前
git pull时报错Your local changes to the following files would…的解决办法
git
超级罗伯特25 分钟前
git一次性完成仓库下载及所有分支获取
git·git仓库拉取
BUTCHER51 小时前
Git 基础命令
git
M malloc1 小时前
当你有两个git账号时,此时你gitpush冲突后如何解决push问题
git
范什么特西1 小时前
下载idea旧版本
java·ide·intellij-idea
啊湘1 小时前
VSCODE英文界面切换为中文(适用CURSOR等使用)
ide·vscode·编辑器·bug·cursor
jarreyer2 小时前
markdown转jupyter notebook记录
ide·python·jupyter
cuijiecheng20183 小时前
Linux控制台下git使用图形化界面进行文件对比
linux·运维·git
hui函数3 小时前
如何解决 PyCharm 控制台 pip install 报错 OSError: [Errno 122] Disk quota exceeded 问题
ide·pycharm·pip