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

相关推荐
摇滚侠10 小时前
帮我整理一份 IDEA 开发中常用快捷键
java·ide·intellij-idea
dyxal12 小时前
VS Code 终端疑难杂症排查:为什么 PowerShell 无法启动?
vscode
【ql君】qlexcel12 小时前
Visual Studio Code开发STM32设置头文件宏定义uint32_t报错
vscode·stm32·vs code·头文件宏定义·uint32_t报错·uint8_t报错·uint16_t报错
琉璃榴12 小时前
Visual Studio Code连接远程服务器
服务器·vscode·github
打不了嗝 ᥬ᭄14 小时前
Git 原理与使用
git·gitee
HuDie34014 小时前
agent项目实操笔记
ide
jieyucx14 小时前
Golang 完整安装与 VSCode 开发环境搭建教程
开发语言·vscode·golang
梦魇星虹15 小时前
idea Cannot find declaration to go to
java·ide·intellij-idea
xifangge202515 小时前
【故障排查】IDEA 打开 Java 文件没有运行按钮(Run)?深度解析项目标识与环境配置的 3 大底层坑点
java·ide·intellij-idea
m0_6146190616 小时前
花了一下午学 Git,整理了一份学习笔记
笔记·git·学习