![]() |
1
5
Git使用 Xdelta XDiff ). Git的所有存储对象也用Git的zlib deflate压缩,这是 fundamentally similar to gzip 所以在这个特殊的层面上 a wash . 1
如果您的图像是巨大的,或者您标记为“不要尝试增量压缩”通过
另请参见 Is repacking a repository useful for large binaries? 和 Are Git's pack files deltas rather than snapshots? What does git do when we do : git gc - git prune . 底线,因为它是,你将不得不做一些测试试验,看看什么最适合你的特定情况。请注意,fetch和push使用“瘦包”(在瘦包中,对象根据已知存在于另一个Git中的基本对象进行压缩,但不在包文件中)来加速网络传输,这可能是 比节省磁盘空间更重要,所以也要考虑这一点。 1 或者 six of one, half a dozen of the other .
|