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

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