Tried below command and facing error.
> 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
git config --global pack.windowMemory 256m
git repack -a -f -d
update the latest git extension
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?