bfg
« Back to VersTracker
Description:
Remove large files or passwords from Git history like git-filter-branch
Type: Formula  |  Latest Version: 1.15.0@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: git version-control security cleanup developer-tools
Install: brew install bfg
About:
BFG Repo-Cleaner is a purpose-built alternative to git-filter-branch, designed to simplify the process of removing sensitive data like passwords or large files from Git history. It offers a significantly faster and more intuitive command-line interface, making repository cleaning operations safer and more accessible for developers.
Key Features:
  • Simplifies removal of large files and sensitive data from Git history
  • Significantly faster performance compared to git-filter-branch
  • Intuitive command-line interface for easy usage
  • Preserves commit history for non-targeted changes
Use Cases:
  • Removing accidentally committed passwords, API keys, or credentials
  • Deleting large binary files that bloat repository size
  • Cleaning up repository history before open-sourcing a project
Alternatives:
  • git-filter-repo – Modern, versatile tool for history rewriting; BFG is often faster for specific cleanup tasks and easier for beginners.
  • git-filter-branch – Built-in Git tool for history rewriting; BFG is recommended as a safer, faster, and more user-friendly replacement.
License: GPL-3.0-or-later
Dependencies: openjdk
Bottles available for: all
Version History
Detected Version Rev Change Commit