当前位置:   article > 正文

git使用问题Out of memory, malloc failed error: failed to push some refs to解决方法记录_fatal: out of memory, realloc failed

fatal: out of memory, realloc failed

第一篇-记录使用git使用问题:Out of memory, malloc failed (tried to allocate 3300130816 bytes) error: failed to push some refs to的解决方法

报错问题:
$ git push -f origin master
fatal: Out of memory, malloc failed (tried to allocate 3300130816 bytes)
error: failed to push some refs to

1、在.git目录下的config文件添加
[pack]
threads = 1
deltaCacheSize = 128m
packSizeLimit = 128m
windowMemory = 128m
[core]
packedGitLimit = 128m
packedGitWindowSize = 128m
2、在git bash输入下面代码就可解决
git config --global http.postbuffer 5242880000
git config --global pack.windowMemory 128m

我在浏览国内网站后没有发现可解决的办法
最后在国外网站找到了解决办法,我最后添加了git config --global http.postbuffer 5242880000 这个值后问题得以解决。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/428407
推荐阅读
相关标签
  

闽ICP备14008679号