github Removing sensitive data or large files Using the BFG Repo Cleaner


Example

BFG Repo cleaner is an alternative to git filter-branch. It can be used to remove sensitive data or large files that were committed wrongly like binaries compiled from the source. It is written in Scala.

Project website: BFG Repo Cleaner

Requirements

The Java Runtime Environment (Java 7 or above - BFG v1.12.3 was the last version to support Java 6). The Scala library and all other dependencies are folded into the downloadable jar.

Remove files with sensitive data

bfg --delete-files YOUR-FILE-WITH-SENSITIVE-DATA