Command-line tool
git-filter-repo
brew/git-filter-repo
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Quickly rewrite git repository history
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
scoop install git-filter-repo
macOS
brew install git-filter-repo
Replace a sensitive string in all files
git filter-repo --replace-text <(echo 'find==>replacement')
Extract a single folder, keeping history
git filter-repo --path path/to/folder
Remove a single folder, keeping history
git filter-repo --path path/to/folder --invert-paths
Related command-line tools
- ghorg
Quickly clone an entire org's or user's repositories into one directory - repo
Repository tool for Android development - git-repo-manager
Manage multiple git repositories. You configure the git repositories in a file, the program does the rest! - all-repos
Clone all your repositories and apply sweeping changes - bfg
Remove large files or passwords from Git history like git-filter-branch - pacman-repo-builder
Build a custom pacman repository from a collection of PKGBUILD directories - Git Repository Manager
Git Repository Manager (Windows package; no description in the winget index) developer-tools cli git terminal repository - gita
Manage multiple git repos with sanity
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents