[git] out of memory malloc failed

参考:

https://segmentfault.com/a/1190000042740954?utm_source=sf-similar-article

git上传代码时报错:

fatal: Out of memory, malloc failed (tried to allocate 524288000 bytes)

处理办法:

打开cmd,依次输入:

c 复制代码
git config --global pack.windowMemory 50m
git config --global http.postbuffer 524288000
git repack

或者修改本地的.gitconfig文件

c 复制代码
[http]
postbuffer = 524288000
[pack]
windowMemory = 50m

再在cmd中输入git repack,回车。

相关推荐
OsDepK20 分钟前
OSMDE手机AI编程,一键Git
git·ai编程
用什么都重名6 小时前
Git分支合并与远程服务器同步实战:保留关键配置文件
运维·服务器·git
得要找到一束光7 小时前
git详细命令
git·github
2601_961875249 小时前
花生十三公考课程|网课|视频
数据库·windows·git·svn·eclipse·github
EleganceJiaBao12 小时前
【Git】Git reset 完整指南:真正理解 HEAD、暂存区与工作区
git·github·reset
我最爱吃鱼香茄子14 小时前
【保姆级】Git配置用户名和邮箱(全局/局部)解决提交记录不识别、贡献图不亮问题
git·gitee·github·小白教程·git配置·程序员开发工具
weixin_5716674114 小时前
git fork 并建立自己的dev分支 保持与源仓库的联系
git
master33615 小时前
git仓库通过脚本完成多个远程仓库同步
大数据·git·elasticsearch
用什么都重名15 小时前
Git 合并两个无共同历史的分支:从报错到解决全记录
git·gitlab
2601_9618752415 小时前
花生十三资料网盘|百度云|下载
数据库·windows·git·svn·eclipse·github