Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop 安装 git-filter-repo

查看 git-filter-repo 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install git-filter-repo

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install git-filter-repo

MacPorts ports tree · devel/git-filter-repo/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add git-filter-repo

Alpine Linux edge package indexes · git-filter-repo · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install git-filter-repo

Debian stable package indexes · git-filter-repo · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install git-filter-repo

Fedora Rawhide package metadata · git-filter-repo · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#git-filter-repo

nixpkgs package indexes · git-filter-repo · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S git-filter-repo

Arch Linux sync databases · git-filter-repo · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install git-filter-repo

openSUSE Tumbleweed package metadata · git-filter-repo · 来源: download.opensuse.org

Windows

Scoop已验证 · 92%
scoop install main/git-filter-repo

Scoop official bucket manifest trees · bucket/git-filter-repo.json · 来源: api.github.com

概览

软件包摘要

Quickly rewrite git repository history

命令和别名

  • git-filter-repo

历史

项目历史与用法

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.

时间线

  • 2009: Imported predecessor history begins with an initial filter-repo commit.
  • 2018: The standalone GitHub repository was created.
  • 2019: Git Rev News published Newren's introduction to git-filter-repo.
  • Git 2.23 era: Early tagged releases appeared as the tool entered package-manager distribution.

Related projects

  • git-filter-repo is related to git filter-branch, BFG Repo Cleaner, git fast-export, git fast-import, and the filter-lamely and bfg-ish demos shipped in its contrib tree.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
git-filter-repocli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本2.47.0
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

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 DatabaseHomebrew formula API
Taphomebrew/core
Full Namegit-filter-repo
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

git-filter-repo 2.47.0-2

Quickly rewrite git repository history

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

sudo apt install git-filter-repo
  • Section: vcs
  • Architecture: all
  • 2 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Git Filter Repo
Debian stable package indexes · deb.debian.org · Debian stable package indexes: git-filter-repo from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

git-filter-repo

nix profile install nixpkgs#git-filter-repo
  • normalized package name match
  • 匹配方式:Git Filter Repo
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: git-filter-repo from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

git-filter-repo 2.38.0-2

Quickly rewrite git repository history

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

sudo apt install git-filter-repo
  • Section: universe/vcs
  • Architecture: all
  • 2 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Git Filter Repo
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: git-filter-repo from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

git-filter-repo 2.47.0-r2

quickly rewrite git repository history

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

sudo apk add git-filter-repo
  • License: MIT
  • Architecture: x86_64
  • Source Package: git-filter-repo
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Git Filter Repo
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: git-filter-repo from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

git-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-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: git-filter-repo
  • normalized package name match
  • 匹配方式:Git Filter Repo
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: git-filter-repo-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

git-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-repo
  • License: GPL-2.0-only OR MIT
  • Category: Development/Tools/Version Control
  • Architecture: noarch
  • Source Package: git-filter-repo
  • 3 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Git Filter Repo
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: git-filter-repo from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

git-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-repo
  • License: MIT OR GLP-2.0-or-later
  • Architecture: any
  • 2 依赖
  • normalized package name match
  • 匹配方式:Git Filter Repo
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: git-filter-repo from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

git-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-repo
  • License: GPL-2.0-only OR MIT
  • Category: Development/Tools/Version Control
  • Architecture: noarch
  • Source Package: git-filter-repo
  • 3 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Git Filter Repo
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: git-filter-repo from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

git-filter-repo

sudo port install git-filter-repo
  • normalized package name match
  • 匹配方式:Git Filter Repo
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/git-filter-repo/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/git-filter-repo

scoop install main/git-filter-repo
  • normalized package name match
  • 匹配方式:Git Filter Repo
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/git-filter-repo.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment