我正在与之交互的 git 存储库有一个巨大的包文件(1.7Gb!),所以我尝试关注这篇文章。我能够使用git filter-branch
,但是当我运行时,git gc --aggressive --prune=now
我得到:
$ git gc --aggressive --prune=now
Counting objects: 119622, done.
Delta compression using up to 4 threads.
error: pack-objects died of signal 9517)
error: failed to run repack
我试图将线程降低到已经使用的 2 和 1,git config --global pack.threads "2"
但它没有帮助。
谢谢!