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

Software

I get this error when trying to push my file changed via GIT and I don't know how to solve this issue. I've tried to search for a solution but I wasn't able to find one.

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

 

Programming Question created: 2020-12-03 07:24 d3m

6

You need to increase the hardware ressources for your git environment. Try to edit .git/config on Unix or .gitconfig on Windows. This should fix the issue and you will be able to push your file stack via git.

[core]
  packedGitLimit = 128m
  packedGitWindowSize = 128m

[pack]
  deltaCacheSize = 128m
  packSizeLimit = 128m
  windowMemory = 128m

[http]
  postbuffer = 5m

How to locate git config files:
You can list your git config file location by running the following command in your CLI:

git config --list --show-origin 
answered 2020-12-04 07:29 Opisie