bfg-repo-cleaner

A command-line tool that removes large or unwanted files, such as leaked passwords or big binaries, from Git history. It does the same job as git-filter-branch but faster.

Share on XLicense: GPL-3.0

Overview

BFG Repo-Cleaner is a command-line tool, written in Scala, for cleaning bad data out of a Git repository's history. It does the same job as git-filter-branch but is simpler to use and faster. Typical uses are removing very large files and stripping passwords, credentials or other private data that was committed by mistake.

Key features

  • Strips blobs larger than a chosen size
  • Replaces banned text such as passwords using a list file
  • Simpler alternative to git-filter-branch
  • Runs from the command line against a repository

Best for

Anyone who has committed huge files or secrets to Git and needs them gone from history. The full usage guide is on the project's documentation site.

Upstream
rtyley/bfg-repo-cleaner
Fork on GitHub
Guo-astro/bfg-repo-cleaner
Upstream stars
12k
Category
Developer tools and infrastructure
License
GPL-3.0
Forked
2025-11-26
Sync status
In syncLast synced 2026-09-29