git push的时候报错: Out of memory, malloc failed (tried to allocate 82037333 bytes)

原因:上传的文件过大,这里我上传的文件有10G+所以报了上面的错误

解决方法:依次运行:git config --global pack.threads 1 git,git config --global pack.deltaCacheSize 128m,git config --global pack.windowMemory 50m。

注:这几个语句中参数的配置代表的含义不清楚,但是我的错误中报了tried to allocate 82037333 bytes,换算下来是70+M,所以用上面设置的参数值可以解决问题。这个值应该是根据自己情况配置

posted @ 2019-08-29 16:57  maycpou  阅读(8624)  评论(2编辑  收藏  举报