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?
See this detailed experiment for explanation of the effects of these parameters.
Default values for
git gc --aggressiveare now 50 and 250 so you can just rungit gc --aggressiveand rely on it having proper defaults.