2012-07-14 16 views
9

Mam repo z którego ciągnąć się w nieskończoność, ponieważ serwer ma mało wolnej pamięci RAM i jest zamiana dużo podczasJak wyłączyć kompresję po stronie serwera git?

remote: Compressing objects: 24% 

dzieje (nawet jeśli sklonować lokalnie na serwerze). Sieć nie jest tak ograniczona, więc byłoby dobrze przesłać wszystkie dane nieskompresowane. Jak mogę to zrobić?

+0

Możesz spróbować grać z opcjami 'pack. *' W [git-config] (http://man.he.net/man1/git-config). –

Odpowiedz

13

Z dokumentacji git:

core.bigFileThreshold 

    Files larger than this size are stored deflated, without 
    attempting delta compression. Storing large files without 
    delta compression avoids excessive memory usage, at the 
    slight expense of increased disk usage. 

Default is 512 MiB on all platforms. 
This should be reasonable for most projects as source code and other 
text files can still be delta compressed, 
but larger binary media files won't be. 

Common unit suffixes of 'k', 'm', or 'g' are supported. 

Więc myślę, ustawiając tę ​​wartość na coś jak 1 by rade.

Rozszerzony przez komentarze: można ustawić to za pomocą polecenia git config --add core.bigFileThreshold 1. Działa również w przypadku nagich repozytoriów.

+3

Mam nagie repo po stronie serwera. Czy mogę po prostu tam pójść i edytować konfigurację? –

+4

Chyba tak, lub uruchom: 'git config --add core.bigFileThreshold 1' –

Powiązane problemy