我有一个永久拉动的回购,因为服务器有很少的可用内存,并且它正在交换很多时间
remote: Compressing objects: 24%
Run Code Online (Sandbox Code Playgroud)
正在发生(即使我在服务器上本地克隆).网络没有那么受限制,所以发送所有未压缩的数据都没关系.我怎样才能做到这一点?
Pet*_*oes 15
从git文档:
Run Code Online (Sandbox Code Playgroud)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命令进行设置.它也适用于裸露的回购.