What does “Auto packing the repository for optimum performance” mean?

后端 未结 5 1628
不知归路
不知归路 2020-12-07 07:53

I\'m having a problem with my git repo. For the last couple of days whenever I do a push to the server I get this message: \"Auto packing the repository for optimum performa

5条回答
  •  时光说笑
    2020-12-07 08:55

    While Jefroni is correct that sometimes the auto-packing just needs time to complete, if the auto-packing message persists over multiple days as OP describes, there's a good chance that git's cleanup is missing dangling objects, as described in this question.

    To see whether dangling objects are triggering ongoing messages about auto-packing, try running git fsck. If you get a long list of dangling commits, you can clean them with

    git gc --prune=now

    I usually have to run this on my repo every 2-3 months when the auto-packing message doesn't go away after a single pull.

提交回复
热议问题