Automic VaultAutomic Vault

brew

使用 Homebrew, dnf, MacPorts, Nix, apt 安装 git-tools

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install git-tools

local Homebrew formula metadata

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

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

Linux

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

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

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

nixpkgs package indexes · pkgs/by-name/gi/git-tools/package.nix · 来源: api.github.com

Debian apt已验证 · 92%
sudo apt install git-restore-mtime

Debian stable package indexes · git-restore-mtime · 来源: deb.debian.org

概览

软件包摘要

Assorted git-related scripts and tools

命令和别名

  • git-branches-rename
  • git-clone-subset
  • git-find-uncommitted-repos
  • git-rebase-theirs
  • git-restore-mtime
  • git-strip-merge

历史

项目历史与用法

Git Tools is Rodrigo Silva's collection of small Git-related command-line utilities, distributed as normal `git-*` executables with optional man pages. The suite covers repository maintenance and migration chores that are useful but too specific to belong in core Git.

项目历史

The upstream repository was created in 2012, and the README says the tools have been tested against Git versions dating back to 2010. The collection is built from Bash utilities plus a Python utility, git-restore-mtime, which became the most visible member of the set.

采用历史

The README explicitly credits git-restore-mtime as the reason the repository was packaged into distributions. It lists Debian, Ubuntu, Linux Mint, Fedora, EPEL-based systems, Gentoo, Arch AUR, Homebrew, MacPorts, Kali Linux, MidnightBSD mports, and Mageia as distribution channels or package ecosystems for the tools.

使用方式

Practitioners use the tools as Git subcommands after placing the executables in PATH or installing an operating-system package. Examples include restoring file modification times from commit history, finding repositories with uncommitted changes, cloning a subset of a repository while preserving relevant history, renaming branch prefixes, and stripping files before a merge.

为什么软件包爱好者会关心

Git Tools is a classic package-manager-friendly utility collection: small scripts, man pages, no daemon, and names that Git automatically discovers as subcommands. Its packaging story also shows how one highly useful script, git-restore-mtime, can pull a broader toolbox into distro archives.

时间线

  • 2010: README says the tools were tested against Git versions dating back to this era.
  • 2012: GitHub repository created and copyright notice added for Rodrigo Silva.
  • 2020: Debian oldoldstable carried git-mestrelion-tools 2020.09-1.
  • 2022: Debian stable line carried git-mestrelion-tools 2022.12-1.

Related projects

  • The suite extends Git and overlaps with shell scripts, Git aliases, and individual packaging of git-restore-mtime in Debian-derived systems.

安全态势

风险级别:绿色

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-branches-renamecli全局可执行文件
git-clone-subsetcli全局可执行文件
git-find-uncommitted-reposcli全局可执行文件
git-rebase-theirscli全局可执行文件
git-restore-mtimecli全局可执行文件
git-strip-mergecli全局可执行文件

新鲜度

版本和新鲜度

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

页面生成时间2026-07-10
管理器版本2025.08
管理器更新时间
本地数据OK
上游当前
检测到的最新版本v2025.08

https://github.com/MestreLion/git-tools

  • 信息No package-manager update timestamp was available.低 置信度

安装元数据

软件包元数据

软件包键brew:git-tools
版本2025.08
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/git-tools
主页https://github.com/MestreLion/git-tools
仓库https://github.com/MestreLion/git-tools
上游文档https://github.com/MestreLion/git-tools#readme
许可证GPL-3.0-or-later
源码归档https://github.com/MestreLion/git-tools/archive/refs/tags/v2025.08.tar.gz
macOS 提供的库python
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegit-tools
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

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

Nix95%

git-tools

nix profile install nixpkgs#git-tools
  • normalized package name match
  • 匹配方式:Git Tools
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gi/git-tools/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
dnf95%

git-tools 2025.08-2.fc44

Assorted git-related scripts and tools

https://github.com/MestreLion/git-tools

sudo dnf install git-tools
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: git-tools
  • 3 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Git Tools
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: git-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
MacPorts95%

git-tools

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

git-restore-mtime 2022.12-1

set timestamps to the date of a file's last commit

https://github.com/MestreLion/git-tools

sudo apt install git-restore-mtime
  • Section: vcs
  • Architecture: all
  • Source Package: git-mestrelion-tools
  • 2 依赖
  • installed executable or alias match
  • 匹配方式:Git Restore Mtime
Debian stable package indexes · deb.debian.org · Debian stable package indexes: git-restore-mtime from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt92%

git-restore-mtime 2022.12-1

set timestamps to the date of a file's last commit

https://github.com/MestreLion/git-tools

sudo apt install git-restore-mtime
  • Section: universe/vcs
  • Architecture: all
  • Source Package: git-mestrelion-tools
  • 2 依赖
  • installed executable or alias match
  • 匹配方式:Git Restore Mtime
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: git-restore-mtime from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

来源线索

由仓库数据生成

此页面由 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