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

后端 未结 11 1697
忘了有多久
忘了有多久 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:53

    You could try passing the --aggressive switch to git gc and see if that helps:

    # this will take a while ...
    git gc --aggressive
    

    Also, you could use git filter-branch to delete old commits and/or files if you have things which you don't need in your history (e.g., old binary files).

提交回复
热议问题