git-filter-repo
« Back to VersTracker
Description:
Quickly rewrite git repository history
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: git history-rewrite developer-tools repository-management security
Install: brew install git-filter-repo
About:
git-filter-repo is a versatile tool for rewriting Git repository history. It allows users to easily remove sensitive data like passwords or keys, restructure project histories, or extract subdirectories into new repositories. It provides a more powerful and user-friendly alternative to git filter-branch for complex history manipulation tasks.
Key Features:
  • Efficiently removes sensitive data (passwords, keys) from history
  • Supports repository restructuring and subdirectory extraction
  • Provides a cleaner, more intuitive interface than git filter-branch
  • Preserves commit hashes and branch structure when desired
Use Cases:
  • Sanitizing repositories by removing accidentally committed credentials
  • Splitting a monorepo into multiple independent repositories
  • Cleaning up large files that bloat repository size
  • Migrating history from other version control systems
Alternatives:
  • git filter-branch – Built-in but slower, more complex, and less flexible for history rewriting
  • BFG Repo-Cleaner – Simpler Java-based alternative focused on cleaning large files and secrets
Version History
Detected Version Rev Change Commit
Dec 4, 2024 5:19am 0 VERSION_BUMP b2d004e1
Dec 4, 2024 4:59am 0 VERSION_BUMP 3678aadd
Oct 12, 2024 11:09pm 0 VERSION_BUMP 6bc84ea4
Oct 12, 2024 5:44pm 0 VERSION_BUMP cf245f00