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

相关推荐
L X..2 小时前
Git 无法访问 GitHub(Recv failure: Connection was reset)问题解决教程
git·github
建群新人小猿7 小时前
客户标签自动管理:标签自动化运营,画像持久保鲜
android·java·大数据·前端·git
来一颗砂糖橘8 小时前
Git 进阶指南:深入掌握 git log 查看提交历史
git·版本控制·开发技巧
六点半8881 天前
【Git】远程操作 + 给命令配置别名 + 标签管理
git
虫师c1 天前
GitOps实战:ArgoCD+Tekton打造云原生CI/CD流水线
git·ci/cd·云原生·kubernetes·argocd·tekton
间彧1 天前
git远程仓库地址发生更改,如何通过命令进行修改
git
xxxandwww1 天前
git仓库常用命令
git
yan8626592462 天前
git操作
git
六点半8882 天前
【Git】分⽀管理
git
小前端学徒2 天前
重新修改未提交到远程分支不是最后一次commit的内容
git