AptLynx

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

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents