This thread gợi ý
run « git repack -adf --window=memory
» on the repo where memory is escalated appropriately for your machine.
Đó là khá nhiều cùng một giải pháp hơn cho câu hỏi SO "Repack of Git repository fails".
git repack -a -d --window-memory 10m --max-pack-size 20m
Tuy nhiên, Mark Longair sẽ warn you that:
Your solution has got you a working copy locally and remotely, but will cause problems again when the remote repository decides to repack itself again.
Vì vậy, cấu hình pack.windowMemory
và pack.packSizeLimit
là một giải pháp an toàn hơn nhiều, cũng như kiểm tra cấu hình của core.packedxxx
và core.deltaxxx
.
Đối với msysgit trên Windows, nhận xét này đề cập đến:
git config --global pack.windowMemory 256m
worked for me
(had have memory alloc error on 64 bit windows (Git-1.7.6-preview20110708.exe)