I have this error while pushing my project to tfs GIT.
fatal: Out of memory, malloc failed (tried to allocate 889192448 bytes)
Edit .git/config
on Unix or .gitconfig
on Windows and modifiy the following params. By running git config --list --show-origin
you could locate your gitconfigs.
[core]
packedGitLimit = 128m
packedGitWindowSize = 128m
[pack]
deltaCacheSize = 128m
packSizeLimit = 128m
windowMemory = 128m
[http]
postbuffer = 5m
If you are using git via CLI ensure you restart your shell/terminal after you changed this settings.