Git add error: "fatal: malloc, out of memory"

When I try to execute git add, I get the error message "fatal: malloc, out of memory". I assume that the system has run out of memory, but there is a way around this.

I also start Windows Server 2003 and using msysGit.

EDIT: after a larger search, I think the problem with git packaging is that their compression method seems to be great for small files, but it suffocates heavily in large files.

+2
source share
2 answers

After much research, I found this to be a simple problem with a package running out of memory, due to the fact that git uses compression methods that are more suitable for a large number of small files.

If anyone is interested, I will get around this problem by splitting the files before adding them so that they can track the changes, but you need to collect them when you return them.

+2
source

I increased the memory on my server and solved the problem.

+1
source

Source: https://habr.com/ru/post/1348182/


All Articles