git add error:“致命:malloc,内存不足” [英] git add error : "fatal : malloc, out of memory"

查看:172
本文介绍了git add error:“致命:malloc,内存不足”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我试图做一个混帐添加我得到的错误致命:malloc,内存不足。我想这个系统显然已经耗尽内存,但是有办法解决这个问题。

When i attempt to do a git add i get the error "fatal : malloc, out of memory". i imagine the system has ran out of memory obviously but is there a way to get around this.

另外我运行windows server 2003并使用msysGit。

Also i am running windows server 2003 and using msysGit.

编辑:经过更多的搜索周围,我认为它与git包装有关的问题,显然他们的压缩方法对于小文件非常适用,但对于大文件却很难扼杀。

After more searching around i think its a problem with the packing of git, apparently their compression method is great for small files but on big files it chokes hard.

推荐答案

经过大量研究,我发现它的一个简单问题是打包程序内存不足,这是由于git使用压缩方法更适合大量的小文件。

After much research i found its a simple problem of the packer running out of memory, this is due to the fact that git uses compression methods that are more suitable to large amounts of small files.

如果有任何感兴趣的话,我可以在添加它们之前通过分割文件来解决此问题,以便它仍可以跟踪这些更改但当它恢复时它需要放在一起。

If any was interested i am getting around this problem by splitting the files before add them in so it can still track the changes but it will need to be put together when getting it back.

这篇关于git add error:“致命:malloc,内存不足”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆