2012年6月8日 星期五

git repository with large files settings

In some circumstances, we have to allow developers to put large files into git repository, but that would
usually encounter mmap/malloc memory space shortage errors in git.

To fix this issue,  we have to upgrade git version to 1.7.10+ and add the following settings to ~/.gitconfig

[core]
    packedGitWindowSize = 128m
    packedGitLimit = 128m
    bigFileThreshold = 128m
[pack]
    compression = 1
    windowMemory = 128m
    threads = 1
    window = 1
    depth = 1
    deltaCacheSize = 1
    packSizeLimit = 128m

沒有留言:

張貼留言