我有一个存储库,从中拉取需要很长时间,因为服务器几乎没有可用 RAM 并且它在交换时进行了大量操作
remote: Compressing objects: 24%
正在发生(即使我在服务器本地克隆)。网络没有那么受限,因此发送所有未压缩的数据就可以了。我怎样才能做到这一点?
来自 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
命令。它也适用于裸仓库。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)