macOS
brew install bfglocal Homebrew formula metadata
sudo port install bfgMacPorts ports tree · java/bfg/Portfile · source: api.github.com
brew
Remove large files or passwords from Git history like git-filter-branch. Version 1.15.0 via Homebrew; verified from local package data.
install
brew install bfglocal Homebrew formula metadata
sudo port install bfgMacPorts ports tree · java/bfg/Portfile · source: api.github.com
scoop install main/bfgScoop official bucket manifest trees · bucket/bfg.json · source: api.github.com
overview
Remove large files or passwords from Git history like git-filter-branch
history
BFG Repo-Cleaner is a Scala/JVM command-line tool for removing large files, passwords, credentials, and other unwanted blobs from Git history. Its official positioning is as a simpler and much faster alternative to git-filter-branch for cleansing bad data from repositories.
The official GitHub repository was created in December 2012. BFG's README and project site center on two core repository-cleaning jobs: stripping large blobs and replacing sensitive text across history.
Release history shows BFG maturing through the 2010s, including Git LFS support in v1.12.5 in 2015, Java 8 and Scala 2.12 support in v1.13.0 in 2018, Scala 2.13 in v1.14.0 in 2021, and v1.15.0 in January 2025.
BFG became widely known because git-filter-branch was powerful but slow and difficult to use for common cleanup jobs. BFG narrowed the problem to the operations teams most often needed after accidentally committing giant artifacts or secrets, then packaged that workflow as a standalone executable.
The input records Homebrew, MacPorts, and Scoop packaging, matching BFG's cross-platform appeal: it is a Java-based tool that can be used from macOS, Linux, or Windows when a Git repository needs emergency cleanup.
Typical usage is on a mirror clone or bare repository, with commands such as stripping blobs above a size threshold or replacing text listed in a file. After BFG rewrites the repository objects, users still need the normal Git cleanup and force-push workflow expected after history rewriting.
Because it rewrites repository history, BFG is used deliberately: it is most valuable when a repository has already leaked bulky files or secrets and the team needs a repeatable cleanup tool rather than manual filter-branch scripting.
BFG is package-nerd significant because it turned one of Git administration's ugliest chores into a memorable, packaged CLI. Before git-filter-repo became the modern upstream-recommended tool, BFG was the package many developers reached for when Git history got polluted.
Its design is a good example of a focused package beating a built-in general-purpose tool for a painful workflow: fewer knobs, better defaults for common cleanup cases, and performance claims strong enough to become part of the project's identity.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
bfg | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://rtyley.github.io/bfg-repo-cleaner/
install metadata
| Package key | brew:bfg |
|---|---|
| Version | 1.15.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/bfg |
| Homepage | https://rtyley.github.io/bfg-repo-cleaner/ |
| Repository | https://github.com/rtyley/bfg-repo-cleaner |
| Upstream docs | https://rtyley.github.io/bfg-repo-cleaner |
| License | GPL-3.0-or-later |
| Source archive | https://search.maven.org/remotecontent?filepath=com/madgag/bfg/1.15.0/bfg-1.15.0.jar |
| Dependencies | openjdk |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | bfg |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
bfg
sudo port install bfgmain/bfg
scoop install main/bfgsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.