When I export mercurial to git, why is the result so large?
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?
- Is it a good idea to put Mercurial Repository in shared Network drive?
- On Windows, can we put different folders in 1 Git or Mercurial (hg) repository?
- Mercurial: Remove changeset from remote branch
- When a commit to revision control requires a developer to change their own config
- How can I back out a merge in Mercurial and later remerge with that branch?
- Git equivalent of Mercurial phases?
One Solution collect form web for “When I export mercurial to git, why is the result so large?”
The answer was
git gc --agressive 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?