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

相关推荐
微尘寒风8 小时前
【Git】的安装和使用
java·git
胖大和尚18 小时前
Git初始化本地文件夹,并推送到远端
git
啵啵啵123418 小时前
Git 底层原理:分支为什么只是一个 41 字节的文件
git
demon755200320 小时前
Git Worktree详解介绍
git·worktree
胖大和尚21 小时前
当前仓库推送到同一台机器上的另一个文件夹
git
witton1 天前
MacOS中在目录或者文件右键菜单中添加“使用VSCode打开”
vscode·macos·文件·目录·服务·automator·右键菜单
wabil1 天前
[AI-Talk] codx制作xmind文件技巧
ide·ai编程·myeclipse·xmind
大衛說1 天前
02 · 环境搭建:uv 包管理与现代 IDE
ide·uv
cndes2 天前
安装Miniconda+Jupyter notebook
ide·python·jupyter
码上暴富2 天前
Cursor / VS Code 自定义文件颜色
前端·vscode