2012-01-27 6 views

Odpowiedz

13

This thread sugeruje

run « git repack -adf --window=memory » on the repo where memory is escalated appropriately for your machine.

który jest niemal tak samo rozwiązanie niż na pytanie SO "Repack of Git repository fails".

git repack -a -d --window-memory 10m --max-pack-size 20m 

Jednak Mark Longair będzie 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.

Więc konfigurowania pack.windowMemory i pack.packSizeLimit jest o wiele bezpieczniejsze rozwiązanie, a także sprawdzanie Config core.packedxxx i core.deltaxxx.

Dla msysGit w systemie Windows, ten komentarz jest mowa o:

git config --global pack.windowMemory 256m 

worked for me
(had have memory alloc error on 64 bit windows (Git-1.7.6-preview20110708.exe)

0

Running

git repack -a -d --window-memory 10m --max-pack-size 20m 

tak naprawdę nie rozwiązuje mojego problemu.

Usunięcie repozytorium, a następnie sklonowanie git ponownie rozwiązały problem.

Powiązane problemy