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

相关推荐
弘毅 失败的 mian5 分钟前
Git 基本操作
大数据·经验分享·笔记·git·elasticsearch
羊仔AI探索22 分钟前
GLM-4.6接入Claude Code插件,国内丝滑编程
ide·人工智能·ai·aigc·ai编程
m0_4902406733 分钟前
wsl+vscode
ide·vscode·编辑器
在天愿作比翼鸟在地愿为连理枝37 分钟前
宿主机使用VScode连接本地虚拟机
ide·vscode·编辑器
郑板桥301 小时前
如何自定义一个MCP服务器:从零到一的完整指南
前端·vscode
wang6021252182 小时前
Git相关操作
git
一只大头猿2 小时前
myeclipse-ci-2018安装教程
ide·ci/cd·myeclipse
MounRiver_Studio3 小时前
RISC-V IDE MRS2使用笔记(三):编译后函数调用分析
ide·笔记·risc-v
MounRiver_Studio3 小时前
RISC-V IDE MRS2使用笔记(二): 编译后Memory分析
ide·笔记·单片机·嵌入式·risc-v
点亮~黑夜3 小时前
git详细使用教程
大数据·git·elasticsearch