当我尝试对仓库进行变基时:
git rebase XXX YYY
我遇到了“内存不足,malloc失败”的错误:
First, rewinding head to replay your work on top of it...
fatal: Out of memory, malloc failed (tried to allocate 34537367 bytes)
git encountered an error while preparing the patches to replay
these revisions:
3d5a7259c57b6b8a86fd6f7c44e6efa25a0e9db4..450ac9a6cf85475ab1a38b763f2f9a836a
4ba6a0
As a result, git cannot rebase them.
如果我使用 cherry-pick,它可以无错误地工作:
git checkout XXX
git cherry-pick YYY
我正在使用Windows版本1.9.4-preview20140815上的Git。机器有8GB RAM,在repo中没有大于100MB的文件,以下是与打包相关的设置:
[core]
packedGitWindowSize = 256m
packedGitLimit = 256m
[pack]
packSizeLimit = 2g
threads = 2
deltaCacheSize = 256m
windowMemory = 256m