[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,回车。

相关推荐
XiaoHu02071 小时前
Linux多线程(详细全解)
linux·运维·服务器·开发语言·c++·git
*才华有限公司*1 小时前
RTSP视频流播放系统
java·git·websocket·网络协议·信息与通信
juelianhuayao2 小时前
Git错误提交后如何快速删除本次commit
git
chen<>3 小时前
Git原理与应用
大数据·git·elasticsearch·svn
小兔崽子去哪了3 小时前
Git 专题
git
金米kk4 小时前
git pull时报错Your local changes to the following files would…的解决办法
git
超级罗伯特4 小时前
git一次性完成仓库下载及所有分支获取
git·git仓库拉取
BUTCHER54 小时前
Git 基础命令
git
M malloc4 小时前
当你有两个git账号时,此时你gitpush冲突后如何解决push问题
git
cuijiecheng20186 小时前
Linux控制台下git使用图形化界面进行文件对比
linux·运维·git