macOS
brew install git-filter-repolocal Homebrew formula metadata
sudo port install git-filter-repoMacPorts ports tree · devel/git-filter-repo/Portfile · 来源: api.github.com
安装
brew install git-filter-repolocal Homebrew formula metadata
sudo port install git-filter-repoMacPorts ports tree · devel/git-filter-repo/Portfile · 来源: api.github.com
sudo apk add git-filter-repoAlpine Linux edge package indexes · git-filter-repo · 来源: dl-cdn.alpinelinux.org
sudo apt install git-filter-repoDebian stable package indexes · git-filter-repo · 来源: deb.debian.org
sudo dnf install git-filter-repoFedora Rawhide package metadata · git-filter-repo · 来源: dl.fedoraproject.org
nix profile install nixpkgs#git-filter-reponixpkgs package indexes · git-filter-repo · 来源: raw.githubusercontent.com
sudo pacman -S git-filter-repoArch Linux sync databases · git-filter-repo · 来源: geo.mirror.pkgbuild.com
sudo zypper install git-filter-repoopenSUSE Tumbleweed package metadata · git-filter-repo · 来源: download.opensuse.org
scoop install main/git-filter-repoScoop official bucket manifest trees · bucket/git-filter-repo.json · 来源: api.github.com
概览
Quickly rewrite git repository history
历史
git-filter-repo is a Python-based Git history rewriting tool by Elijah Newren, positioned as a safer and faster successor to git filter-branch for repository cleanup, extraction, path rewriting, tag rewriting, and sensitive-data removal.
The project grew out of Newren's work on Git fast-export and fast-import based history filtering. The public repository carries imported history back to a 2009 initial import, while the standalone GitHub project was established in 2018 and began tagging releases alongside Git 2.23-era packaging. Its README frames the tool as a response to shortcomings in git filter-branch and BFG Repo Cleaner: poor performance, confusing multi-step cleanup, limited rewrite types, and fragile shell-based filtering.
Adoption was accelerated by the Git project's own filter-branch documentation, which warns against filter-branch for many use cases and points users toward git-filter-repo. The project became a standard answer for history-rewrite work because it combines a command-line interface, a Python library for custom filters, conversion guides from filter-branch and BFG, and packaging in common Unix package ecosystems.
Practitioners use git-filter-repo for destructive repository rewrites: removing large blobs or secrets, extracting a subdirectory with history, moving a project into a subdirectory before a merge, renaming tags, rewriting author data with mailmap information, or replacing text across historical blobs. The tool deliberately encourages use from a fresh clone and performs cleanup steps such as pruning old history and repacking so users do not mix rewritten and original refs.
For package maintainers and release engineers, git-filter-repo matters because it replaced a folklore-heavy set of filter-branch recipes with a single-file script, a documented manual, and reproducible transformations. Its existence also fed changes back into core Git fast-export and fast-import behavior, making it part of the broader Git tooling ecosystem rather than only a cleanup script.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
git-filter-repo | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/newren/git-filter-repo
安装元数据
| 软件包键 | brew:git-filter-repo |
|---|---|
| 版本 | 2.47.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/git-filter-repo |
| 主页 | https://github.com/newren/git-filter-repo |
| 仓库 | https://github.com/newren/git-filter-repo |
| 上游文档 | https://github.com/newren/git-filter-repo#readme |
| 许可证 | MIT |
| 源码归档 | https://github.com/newren/git-filter-repo/releases/download/v2.47.0/git-filter-repo-2.47.0.tar.xz |
| macOS 提供的库 | git, python |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | git-filter-repo |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
git-filter-repo 2.47.0-2
Quickly rewrite git repository history
https://github.com/newren/git-filter-repo
sudo apt install git-filter-repogit-filter-repo
nix profile install nixpkgs#git-filter-repogit-filter-repo 2.38.0-2
Quickly rewrite git repository history
https://github.com/newren/git-filter-repo
sudo apt install git-filter-repogit-filter-repo 2.47.0-r2
quickly rewrite git repository history
https://github.com/newren/git-filter-repo
sudo apk add git-filter-repogit-filter-repo-doc 2.47.0-r2
quickly rewrite git repository history (documentation)
https://github.com/newren/git-filter-repo
sudo apk add git-filter-repo-docgit-filter-repo 2.47.0-10.fc45
Quickly rewrite git repository history (git-filter-branch replacement)
https://github.com/newren/git-filter-repo
sudo dnf install git-filter-repogit-filter-repo 2.47.0-3
Quickly rewrite git repository history (filter-branch replacement)
https://github.com/newren/git-filter-repo
sudo pacman -S git-filter-repogit-filter-repo 2.47.0-2.3
Quickly rewrite git repository history (git-filter-branch replacement)
https://github.com/newren/git-filter-repo
sudo zypper install git-filter-repogit-filter-repo
sudo port install git-filter-repomain/git-filter-repo
scoop install main/git-filter-repo来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.