BFG Repo-Cleaner is a Git history cleaner and repository optimizer designed to permanently remove large files and sensitive data from a project's entire commit history. It functions as a specialized purger to delete passwords and private credentials across all commits to prevent security leaks.
This tool is implemented in Scala to provide high-performance processing for repository cleaning logic. It distinguishes itself by incorporating a safety mechanism that preserves the state of the latest commit, ensuring that historical cleaning does not break the current production code.
The project covers broader repository maintenance through the identification and removal of files exceeding specific size thresholds to reduce the total storage footprint. It also provides security utilities to scan and purge private information from historical commits.