我有一个旧的 mercurial 存储库,我正在使用 hg-fast-export 将其导出到 git。它是115MB。当我运行 hg-fast-export as described here ,生成的git仓库为663M。知道为什么会这样吗?
最佳答案
答案是
git gc --aggressive
我实际上是从一篇文章中得到的,Linus Torvalds 说这是个坏主意,但他的命令不起作用,而这个命令起作用了。
我还必须更改用于打包的内存使用参数,如下所述:
Is there a way to limit the amount of memory that "git gc" uses?
关于git - 当我将 mercurial 导出到 git 时,为什么结果这么大?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27298371/