Git Clients

BFG Repo-Cleaner – clean unwanted data from Git repository history

BFG Repo-Cleaner is a command-line tool for cleaning unwanted data from Git repository history.

It’s designed for common but painful maintenance jobs such as removing huge blobs, purging leaked credentials, and stripping private files from previous commits. The tool offers a focused alternative to git-filter-branch, with a simpler workflow and strong performance from processing Git objects efficiently and using multi-core JVM execution.

This is free and open source software.

Key Features

  • Removes large files and troublesome blobs from Git repository history.
  • Deletes files or folders matching specified names or patterns.
  • Replaces sensitive text such as passwords and credentials from historical commits.
  • Protects the current HEAD commit by default to reduce the risk of breaking the latest project state.
  • Updates commits, branches, and tags in mirror clones before standard Git garbage collection removes unwanted objects.
  • Runs as a self-contained Java application, with Scala libraries and dependencies folded into the downloadable JAR file.
  • Requires Java 11 or above.

Website: github.com/rtyley/bfg-repo-cleaner
Support:
Developer: Roberto Tyley
License: GNU General Public License v3.0

bfg usage

BFG Repo-Cleaner is written in Scala. Learn Scala with our recommended free books and free tutorials.


Related Software

Git Tools for Diff Review and Repository History
difftasticStructural diff tool that compares files based on their syntax
git-filter-repoQuickly rewrite git repository history
onefetchDisplays information about a local Git repository
git-statsLocal git statistics including GitHub-like contributions calendars
diff-so-fancyAttractive diffs with diff-highlight and more
BFG Repo-CleanerClean unwanted data from Git repository history
git-deltaViewer for git and diff output
gitlogueCinematic Git commit replay tool
git-quick-statsAccess various statistics in a git repository
git-whoCommand-line Git analysis tool
git-standupRecall what you did on the last working day
git-of-theseusAnalyze how a Git repo grows over time
git-sizerCompute various size metrics for a git repository
diffnavGit diff pager based on delta but with a file tree, à la GitHub
critiqueTerminal UI for reviewing git diffs
git-big-pictureVisualization tool for Git repositories
herculesGain advanced insights from Git repository history
keifuTUI that visualizes Git commit graphs
git-fameGit repository collaborators sorted by contributions
needleHighlights GitHub PRs
mergirafGit merge driver
git-historyAnalyze Git history using SQLite
ecTerminal Git mergetool
diffrWord-by-word diff highlighting utility
git-scopeFast TUI dashboard to view the git status of all your repositories
mamediffManages unstaged and staged Git diffs
deadbranchKeep Git repositories tidy
GitTopLightweight desktop client for GitHub notifications
git-heatmapGenerates a customizable heatmap

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted