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?
A Git command needs to be run on a specific repository, so this error typically occurs when a Git command is run in a directory that Git doesn't know about. In these cases, the fix is to make sure that you are both working in the correct folder and that you set up your repository right.
The BFG is a simpler, faster (10 - 720x faster) alternative to git-filter-branch for cleansing bad data out of your Git repository: Removing Crazy Big Files. Removing Passwords, Credentials & other Private data.
See https://github.com/rtyley/bfg-repo-cleaner/issues/17 for a discussion on a dry-run feature.
Essense of my comments there: since Git makes it super-cheap to make additional local clones where you can perform test-runs of BFG, and this provides you with real output you can verify in addition to a report, that is superior to having a report-only or dry-run mode.
Just make an additional local clone of the repo, run BFG, then read the reports produced and examine the repo.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With