Windows git出现Out of memory, malloc failed
2022-6-25 21:56:2 Author: itlanyan.com(查看原文) 阅读量:17 收藏

因工作要求,最近半年来都用的Windows系统,Git自然首选官方客户端。

git使用过程中,官方客户端遇到了两个问题:对子模块支持不好,不时会出现子模块已经更新引用,但返回主库不不是有变更的bug;第二个就是最近遇到的错误:

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

子模块问题,更新到最新版基本解决了(但是IT反馈了另外一个git子模块的bug:主库可以拉取代码,拉取子模块却要认证,也是升级到最新版就好了);第二个问题,网上修改core或者pack设置最大内存的方法都不好使,反而是一个简单的配置解决了:

git config http.postbuffer 5m

参考

1. Git on Windows, “Out of memory – malloc failed”

2. PHP开发的Github文件下载加速项目

3. git常用命令总结

打赏


文章来源: https://itlanyan.com/windows-git-out-of-memory-malloc-failed/
如有侵权请联系:admin#unsafe.sh