关于git:git-out-of-memory-malloc-failed-解决

2次阅读

共计 389 个字符,预计需要花费 1 分钟才能阅读完成。

git 提交时,报错
“Fatal: Out of memory, malloc failed (tried to allocate 524288000 bytes)”

解决这个报错
1、须要把 windowMemory 容量调大(默认 10m,调整为 50m)
2、倡议同时调整 postbuffer 的容量。
3、最初还须要 git repack

关上 cmd,分三次输出三行代码并回车

git config --global pack.windowMemory 50m
git config --global http.postbuffer 524288000
git repack

或者批改本地的.gitconfig 文件

[http]
postbuffer = 524288000
[pack]
windowMemory = 50m

再在 cmd 中输出 git repack,回车。

完结。

同步更新到本人的语雀
https://www.yuque.com/diracke…

正文完
 0