gitで"fatal: Out of memory, malloc failed"エラーが出るときにすること

カテゴリ: Windows | タグ:

Windowsでgitを使用していると、以下のようにOut of memoryエラーが出て処理が行えない場合があります。

Auto packing the repository for optimum performance. You may also
run "git gc" manually. See "git help gc" for more information.
Counting objects: 9290, done.
Compressing objects: 100% (9127/9127), done.
fatal: Out of memory, malloc failed (tried to allocate xxxxxxxxxxx bytes)
error: failed to run repack

このような場合、.git/configファイルに以下の記述を追加することで、対処できる場合があります。

[core]
packedGitLimit = 128m
packedGitWindowSize = 128m

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


from https://stackoverflow.com/questions/10292903/git-on-windows-out-of-memory-malloc-failed


Amazonでおトクに買い物する方法
AmazonチャージでポイントGET


Amazonは買いもの前にAmazonギフト券をチャージしてポイントをゲットしないと損!

こちらもおススメ

2 thoughts on “gitで"fatal: Out of memory, malloc failed"エラーが出るときにすること

  1. 間違いの指摘ありがとうございます。
    .gitignore -> .git/config に修正しました。

admin へ返信する コメントをキャンセル

メールアドレスが公開されることはありません。 が付いている欄は必須項目です