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

相关推荐
skyhh21 小时前
Android Studio 最新版汉化
android·ide·android studio
向着光芒的女孩1 天前
【IDEA】关不了的Proxy Authentication弹框探索过程
java·ide·intellij-idea
9***P3341 天前
Git测试框架使用指南
git
X***48961 天前
Git数据分析应用
git
6***37941 天前
Git安全
git·安全
天外飞雨道沧桑1 天前
前端开发 Cursor MCP 提效工具配置
前端·vscode·ai编程·开发工具·cursor
悟能不能悟1 天前
怎么在idea合并2个个branch
java·ide·intellij-idea
倦王1 天前
vscode 中如何去选择不同的远程环境去debug
ide·vscode·编辑器
z***I3941 天前
Git机器学习
人工智能·git·机器学习
代码AC不AC1 天前
【Linux】版本控制器Git
linux·git·gitee