gpt4 book ai didi

git - 当我将 mercurial 导出到 git 时,为什么结果这么大?

转载 作者:行者123 更新时间:2023-12-05 04:16:30 24 4
gpt4 key购买 nike

我有一个旧的 mercurial 存储库,我正在使用 hg-fast-export 将其导出到 git。它是115MB。当我运行 hg-fast-export as described here ,生成的git仓库为663M。知道为什么会这样吗?

最佳答案

答案是git gc --aggressive 我实际上是从一篇文章中得到的,Linus Torvalds 说这是个坏主意,但他的命令不起作用,而这个命令起作用了。

https://web.archive.org/web/20071231101230/https://metalinguist.wordpress.com/2007/12/06/the-woes-of-git-gc-aggressive-and-how-git-deltas-work/

我还必须更改用于打包的内存使用参数,如下所述:

Is there a way to limit the amount of memory that "git gc" uses?

关于git - 当我将 mercurial 导出到 git 时,为什么结果这么大?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27298371/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com