6

From the command line option I can not see that there is a way to see what bfg will do before doing it.

If I run this command:

$ bfg --strip-blobs-bigger-than 1M --replace-text banned.txt repo.git

Can I get a list of files larger than 1M before actual deleting them?

4

1 回答 1

4

请参阅https://github.com/rtyley/bfg-repo-cleaner/issues/17,了解有关干运行功能的讨论。

我的评论的本质:因为 Git 使得制作额外的本地克隆变得非常便宜,您可以在其中执行 BFG 的测试运行,这为您提供了除了报告之外您可以验证的真实输出,这优于拥有仅报告或试运行模式。

只需对 repo 进行额外的本地克隆,运行 BFG,然后阅读生成的报告并检查 repo。

于 2017-05-16T21:59:07.980 回答