Git push “error: index-pack died of signal 9”

前端 未结 5 763
暗喜
暗喜 2020-12-09 06:14

I\'ve seen a couple of similar questions to this, but haven\'t been able to solve my problem so am asking again.

I added a load of new files to an existing git-ena

5条回答
  •  萌比男神i
    2020-12-09 06:58

    Sometimes this happens with an enterprise github as well due to load issues. I found a good way is to split the clone into two operations, which makes for lighter load on the server.

    First, do a shallow clone: git clone --depth 1 myRepo.git

    Next, enter the clone, and get all the rest of the history to make a full clone: cd myRepo && git fetch --unshallow

    If you have an old version of git which does not support the --unshallow flag, then you can instead do something like git fetch --depth=1000000 or some other suitably large number.

    Some more alternatives are discussed in this blog post: https://blogs.atlassian.com/2014/05/handle-big-repositories-git/

提交回复
热议问题