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

相关推荐
程序猿小D1 小时前
第22节 Node.js JXcore 打包
开发语言·人工智能·vscode·node.js·c#
thels_2 小时前
记录一个用了很久的git提交到github和gitee比较方便的方法
git·gitee·github
远方16092 小时前
0x-3-Oracle 23 ai-sqlcl 25.1 集成安装-配置和优化
数据库·ide·ai·oracle
是烟花哈3 小时前
IDEA中的debug使用技巧
java·ide·intellij-idea
至善迎风4 小时前
Windows系统中如何使用符号链接将.vscode等配置文件夹迁移到D盘(附 CMD & PowerShell 双版本命令)
ide·windows·vscode
old_power5 小时前
在 Windows 系统下配置 VSCode + CMake + Ninja 进行 C++ 或 Qt 开发
c++·windows·vscode·cmake·ninja
miachen-空中飞鸟5 小时前
[BIOS]VSCode zx-6000 编译问题
ide·vscode·编辑器
cooldream20095 小时前
在 Visual Studio Code 中使用驭码 CodeRider 提升开发效率:以冒泡排序为例
vscode·编辑器·驭码 coderider
BigData-05 小时前
vscode vue debug
ide·vue.js·vscode
晨曦5432105 小时前
将 Jupyter Notebook 的默认存储路径从 C 盘迁移到 D 盘,可以通过以下步骤实现:
ide·python·jupyter