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

相关推荐
ChoSeitaku25 分钟前
Git实战|协作开发|分支设计规范|Git实践
git·设计规范
Ama_tor30 分钟前
Visual Studio Code (VS Code) |下载与前端开发环境配置(带图详细)
ide·vscode·编辑器
愿^O^~38 分钟前
VSCode 启动 Spring Boot 微服务 JMX 端口冲突问题
spring boot·vscode·微服务
IvanCodes40 分钟前
Hive IDE连接及UDF实战
ide·hive·hadoop
i建模44 分钟前
Git升级的详细操作
git
送我上青云|10 小时前
告别繁琐命令行:VS Code CMake Tools 环境配置极简指南
ide·visual studio code
不爱学英文的码字机器13 小时前
Git误操作急救手册大纲
git
A懿轩A13 小时前
【2026 最新】Mac 电脑配置指南:Homebrew 安装换源 + Git 环境配置(保姆级教程)
git
还是大剑师兰特15 小时前
Vue3 前端专属配置(VSCode settings.json + .prettierrc)
前端·vscode·json
切糕师学AI16 小时前
Visual Studio Git 使用指南
git·elasticsearch·visual studio