LoginSignup
3
4

More than 5 years have passed since last update.

Gitの「unpack-objects failed」エラーを徹底的に解消する方法

Posted at

もしデカイファイルがあった場合、 git pull また git clone はエラーになる場合もあります:

remote: Counting objects: 80, done.
remote: Compressing objects: 100% (79/79), done.
Connection to bitbucket.org closed by remote host.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: unpack-objects failed

Gitの設定ファイル ~/.gitconfig に下記のものに追加すれば問題が解消しました。

[core]
    packedGitLimit = 512m
    packedGitWindowSize = 512m
[pack]
    deltaCacheSize = 2047m
    packSizeLimit = 2047m
    windowMemory = 2047m

ちなみに私の場合にGitレポジトリーに35Mのファイルがありました。

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4