Versioning large text files in git

后端 未结 4 1977
不知归路
不知归路 2020-12-30 04:44

I\'ve used git for awhile for source control and I really like it. So I started investigating using git to store lots of large binary files, which I\'m finding just isn\'t

4条回答
  •  再見小時候
    2020-12-30 05:23

    One of the side effects of large files is that git diff can run out of memory.

    While Git isn't the right tool (as mentioned in the other answers), at least the git diff issue is mitigated in git 2.2.0 (Q4 2014).
    See commit 6bf3b81 from Nguyễn Thái Ngọc Duy (pclouds):

    diff --stat: mark any file larger than core.bigfilethreshold binary

    Too large files may lead to failure to allocate memory.
    If it happens here, it could impact quite a few commands that involve diff.
    Moreover, too large files are inefficient to compare anyway (and most likely non-text), so mark them binary and skip looking at their content.

提交回复
热议问题