Failed to run repack in git gc

Selva picture Selva · Feb 20, 2014 · Viewed 7.3k times · Source

Tried below command and facing error.

C:\project\sys\src>git gc

Counting objects: 6342699, done.

warning: suboptimal pack - out of memory

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

error: failed to run repack

I have tried

  1. git config --global pack.windowMemory 256m

  2. git repack -a -f -d

  3. update the latest git extension

  4. git gc --aggressive --prune=now

I have tried so many options.But still my facing this issue. any idea why i'm getting this error?

Answer