Git on Windows, "Out of memory - malloc failed"

git, windows

Solution

I found a solution Here that worked for me.

In .git/config file (client and/or server) I added the following:

[core]
  packedGitLimit = 128m
  packedGitWindowSize = 128m

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

Problem

Have run into a problem with repository and tried almost every possible config setting found out there eg. pack.WindowMemory etc etc I believe someone has checked in a large file to remote repository and now each time I try and pull or push to it, GIT tries to pack it and runs out of memory: ``` Auto packing the repository for optimum performance. You may also run "git gc" manually. See "git help gc" for more information. Counting objects: 6279, done. Compressing objects: 100% (6147/6147), done. fatal: Out of memory, malloc failed (tried to allocate 1549040327 bytes) error: failed to run repack ``` Have tried git gc & git repack with various options but keeps returning same error. Almost given up and about to just create a new repo but thought I'd ask around first :)

Original source

Related problems