If you see the below when trying to clone a git repo, then there are a few things to try:
1
2
3
4
5
6
7
8
remote: Counting objects: 690, done.
remote: warning: suboptimal pack - out of memory
remote: fatal: Out of memory, malloc failed (tried to allocate 46164118 bytes)
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed
Try
1
2
git config pack.windowMemory 100m
git config pack.packSizeLimit 100m
