# git filter-repo

> Quickly rewrite git repository history (filter-branch replacement)

Source: https://talira.ai/catalog/git-filter-repo-brvkzm01
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Library
- Categories: [developer tools / git / history rewriting](https://talira.ai/categories/developer-tools/git/history-rewriting)
- Platforms: macos, linux, windows, cli
- Licence: MIT
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Creator: Elijah Newren

git filter-repo rewrites git history: remove a file or a leaked secret from every commit, move a subdirectory into its own repository, rename paths, rewrite author emails or strip large blobs. The git project recommends it instead of git filter-branch, which is far slower and harder to use. Most people use it as a command, and its Python core is a library for writing custom history rewriting tools. It's MIT licensed (also available under git's own licences).

## Links

- GitHub: https://github.com/newren/git-filter-repo

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/git-filter-repo>[^1]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/git-filter-repo>[^2]

## Problems it solves

- someone committed a password and I need it gone from the whole history
- split one folder of our monorepo into its own repo with its history
- remove a huge file that was committed years ago and bloats every clone
- git filter-branch is painfully slow and warns me not to use it
- change the author email on all my old commits
- merge two repos and move one into a subdirectory with history

## Features

- path filtering and renaming
- blob size stripping
- text replacement across history
- mailmap rewriting
- Python library

## Capabilities

- Has a command line tool: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.44 out of 1.
Signals: maintenance 0.27, adoption 0.83, momentum 0.65, community 0.69, backing 0.20, extensibility 0.20.

- latest release v2.47.0 24 months ago
- 13.5k GitHub stars
- 52 contributors
- created by Elijah Newren

Warnings:

- last commit 4 months ago

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
