Reputation: 853
I have an old mercurial repository that I am exporting to git using hg-fast-export. It is 115MB. When I run hg-fast-export as described here, the resulting git repository is 663M. Any idea why that would be?
Upvotes: 3
Views: 234
Reputation: 853
The answer was
git gc --aggressive
which I actually got from an article where Linus Torvalds said it was a bad idea but his command didn't work and this one did.
I also had to change the memory usage parameters for packing, as described here:
Is there a way to limit the amount of memory that "git gc" uses?
Upvotes: 3