2

Windows git出现Out of memory, malloc failed

 1 year ago
source link: https://itlanyan.com/windows-git-out-of-memory-malloc-failed/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Windows git出现Out of memory, malloc failed

Windowstlanyan

因工作要求,最近半年来都用的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常用命令总结


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK