GIT:致命:内存不足,malloc失败(试图分配889192448字节) [英] GIT: fatal: Out of memory, malloc failed (tried to allocate 889192448 bytes)

查看:4906
本文介绍了GIT:致命:内存不足,malloc失败(试图分配889192448字节)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


$ b


fatal:内存不足,malloc失败(试图分配889192448)
字节)


解决方案

编辑 .git / config Unix上的或Windows上的 .gitconfig ,并修改以下参数。通过运行 git config --list --show-origin 你可以找到你的gitconfigs。

  [core] 
packedGitLimit = 128m
packedGitWindowSize = 128m

[ pack]
deltaCacheSize = 128m
packSizeLimit = 128m
windowMemory = 128m

如果您通过CLI使用git,请确保在更改此设置后重新启动shell /终端。


I have this error while pushing my project to tfs GIT.

fatal: Out of memory, malloc failed (tried to allocate 889192448 bytes)

解决方案

Edit .git/config on Unix or .gitconfig on Windows and modifiy the following params. By running git config --list --show-origin you could locate your gitconfigs.

[core]
  packedGitLimit = 128m
  packedGitWindowSize = 128m

[pack]
  deltaCacheSize = 128m
  packSizeLimit = 128m
  windowMemory = 128m

If you are using git via CLI ensure you restart your shell/terminal after you changed this settings.

这篇关于GIT:致命:内存不足,malloc失败(试图分配889192448字节)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆