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

前端 未结 9 1436
有刺的猬
有刺的猬 2021-01-01 17:10

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

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

9条回答
  •  离开以前
    2021-01-01 18:05

    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
    
    [http]
      postbuffer = 5m
    

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

提交回复
热议问题