解决 git push 时 error: pack-objects died of signal 9

  • fennng 

在Azure 的VM上用git push 的时候碰到下面这个问题

error: pack-objects died of signal 9

解决方法是

git config --global pack.windowMemory "32m"

原理嘛。。。我也不懂

官方文档请参考

–window-memory=
This option provides an additional limit on top of –window; the window size will dynamically scale down so as to not take up more than ** bytes in memory. This is useful in repositories with a mix of large and small objects to not run out of memory with a large window, but still be able to take advantage of the large window for the smaller objects. The size can be suffixed with “k”, “m”, or “g”. –window-memory=0 makes memory usage unlimited. The default is taken from the pack.windowMemoryconfiguration variable.

标签:

发表评论

您的电子邮箱地址不会被公开。