Git is really slow for 100,000 objects. Any fixes?

后端 未结 11 1701
忘了有多久
忘了有多久 2020-11-27 13:23

I have a \"fresh\" git-svn repo (11.13 GB) that has over a 100,000 objects in it.

I have preformed

git fsck
git gc

on the repo afte

11条回答
  •  情书的邮戳
    2020-11-27 13:52

    In general my mac is ok with git but if there are a lot of loose objects then it gets very much slower. It seems hfs is not so good with lots of files in a single directory.

    git repack -ad
    

    Followed by

    git gc --prune=now
    

    Will make a single pack file and remove any loose objects left over. It can take some time to run these.

提交回复
热议问题