12

サーバーに空きRAMがほとんどなく、サーバーが頻繁にスワップしているため、プルに永遠にかかるリポジトリがあります

remote: Compressing objects: 24%

が発生しています(サーバー上でローカルにクローンを作成した場合でも)。ネットワークはそれほど制約されていないため、すべてのデータを非圧縮で送信するのが適切です。どうやってやるの?

4

1 に答える 1

18

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.

したがって、この値を1のように設定すると、うまくいくと思います。

git config --add core.bigFileThreshold 1コメントによる拡張:これはコマンドで設定できます。ベアリポジトリでも機能します。

于 2012-07-14T13:46:30.113 に答える