A faster, simpler alternative to git-filter-branch for removing large files and sensitive data from Git repositories.
BFG Repo-Cleaner is a command-line tool that removes large files and sensitive data from Git repositories. It solves the problem of repository bloat and accidental commits of private information by providing a faster, simpler alternative to git-filter-branch. Written in Scala, it focuses on efficiency and ease of use for common cleanup scenarios.
Developers, DevOps engineers, and teams managing Git repositories who need to clean up historical data without the complexity and performance overhead of git-filter-branch.
Developers choose BFG for its dramatic speed improvements (10–720x faster) and straightforward syntax, reducing the risk and time involved in repository maintenance compared to traditional methods.
Removes large or troublesome blobs like git-filter-branch does, but faster. And written in Scala
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Operates 10 to 720 times faster than git-filter-branch by avoiding full history rewriting, with performance benchmarks linked in the README.
Uses straightforward options like --strip-blobs-bigger-than and --replace-text, making it accessible without deep Git expertise.
Specifically designed for removing large files and sensitive data, efficiently addressing the majority of repository cleanup needs.
Main documentation is hosted on a dedicated site (rtyley.github.io/bfg-repo-cleaner/), providing clear examples and guidance.
Only handles blob removal and text replacement; lacks support for advanced Git history manipulations available in git-filter-branch.
Being written in Scala, it requires Java to be installed, which can add setup overhead in environments without Java or seeking minimal dependencies.
Like any history-rewriting tool, improper use can corrupt repositories, and its simplicity might lead users to underestimate the risks.