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

相关推荐
一个数据大开发1 小时前
大模型驱动下的数据中台架构演进:从服务化到智能化
大数据·数据仓库·vscode·pycharm
半个落月2 小时前
从零开始理解 Git 核心操作:告别单机开发的“原始时代”
git
东风破_2 小时前
别学 Git 命令了,先搞懂这仨区域:工作区→暂存区→仓库
git
戴国进2 小时前
详解Git的worktree实现多分支并行开发
大数据·git
凌冰_2 小时前
Claude Code was unable to find CLAUDE_CODE_GIT_BASH_PATH path路径异常解决
git
LOOKWORD20213 小时前
vscode配置插件opencode
vscode·opencode
图像僧3 小时前
没有sudo权限也能安装和使用 VSCode
ide·vscode·编辑器
xlq223224 小时前
3.git
git
沧海一笑-dj4 小时前
【Tools】Visual Studio Code UNC host ‘192.168.236.128‘ access is not allowed错误
vscode·visual studio code·host·unc·access is not
秋雨雁南飞14 小时前
Visual Studio 常用扩展
ide·visual studio