frej / fast-export

A mercurial to git converter using git-fast-import
http://repo.or.cz/w/fast-export.git
808 stars 255 forks source link

Reduce repository size #283

Closed Strawl closed 2 years ago

Strawl commented 2 years ago

Hi! The conversion works good! I really like it, incremental conversion also works find, even in large repositories. The only issue left, that I have, is that I don't really know how to deal with the repository size after the conversion. The 4 Gb big repository now converted to 20 Gb with git, which in the end was a 20Gb big pack file.

This person had a similar issue: https://stackoverflow.com/questions/6969385/why-is-my-git-repository-so-much-larger-than-mercurial-version#:~:text=But%20the%20Git%20repository%20is,3.4%20GB%20for%20Mercurial.

I tried running the following, but with no luck: git repack -a -d --window-memory 10m --max-pack-size 20m git gc --aggressive

Do you perhaps have an idea, how to tackle this problem?

frej commented 2 years ago

Fast-export is just a user of Git fast import. For questions on Git usage and performance, I suggest you pose your question to the Git community.