I keep getting this error when trying to do a git pull or a git gc.
warning: suboptimal pack - out of memory
Compressing objects: 100% (10955/10955), done.
fatal: Out of memory, malloc failed (tried to allocate 827101023 bytes)
error: failed to run repack
How would I go about fixing this?
This thread suggests
That is pretty much the same solution than for the SO question “Repack of Git repository fails“.
However, Mark Longair will warn you that:
So configuring
pack.windowMemoryandpack.packSizeLimitis a much safer solution, as well as checking the config ofcore.packedxxxandcore.deltaxxx.For msysGit on Windows, this comment mentions: