3 ms·
There also git rocket filter [0] which I personally prefer, which is slightly faster than BFG, and more suitable if you already use dotnet, and if you don't use
by olvy0 3y ago
There also git rocket filter [0] which I personally prefer, which is slightly faster than BFG, and more suitable if you already use dotnet, and if you don't use Java.
It also have scripting features - you can optionally run arbitrary C# code snippet (written inline) on each blob, given its details, to decide whether to keep it or not.
However, as opposed to BFG, Git rocket filter doesn't seem to be maintained.
But it just works, even with the newest git repos. It saved me a couple of times in the last 4 years, when people on my team and other teams committed huge binaries to git and immediately pushed. This usually happens when just starting out with git in various teams, without having first set up a pull request pipeline.
[0] https://github.com/xoofx/git-rocket-filter https://github.com/xoofx/git-rocket-filter