Repack after importing from svn

142 Views Asked by At

I have imported with svn2git a SVN Repo. Now I left with the choice how to repack/garbage collect the repo to reduce the size, but I dont want to sacrifice the performance of later git operations. How do I do that?

The homepage of the tool suggests:

git repack -a -d -f 

or should I use a really long depth and window:

git repack -a -d -f --depth=250 --window=250

Does performance of later git operations suffer from these gc decisision?

1

There are 1 best solutions below

2
phd On

See this detailed experiment for explanation of the effects of these parameters.

Default values for git gc --aggressive are now 50 and 250 so you can just run git gc --aggressive and rely on it having proper defaults.