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

相关推荐
MrLi01041 小时前
在git中同时配置gitcode和github访问权限
git·github·gitcode
越来越无动于衷1 小时前
Git 团队协作完全指南:从基础到高级应用
git
小怪兽会微笑1 小时前
如何上传github(解决git的时候输入正确的账号密码,但提示认证失败)
git·github
qiqiqi(^_×)10 小时前
卡在“pycharm正在创建帮助程序目录”
ide·python·pycharm
小妖66611 小时前
vscode 源码编译
ide·vscode·编辑器
张人玉12 小时前
Visual Studio 的常用快捷键
ide·visual studio
focksorCr14 小时前
在VsCode上使用开发容器devcontainer
ide·vscode·编辑器
Komorebi_999914 小时前
Git常用指令
git·web
Lum110414 小时前
PyCharm高效入门指南大纲
ide·python·pycharm
一小池勺16 小时前
🚀 Git 如何让文件存在于远程仓库却不被本地追踪?
git·github