macOS
brew install git-toolslocal Homebrew formula metadata
sudo port install git-toolsMacPorts ports tree · devel/git-tools/Portfile · 来源: api.github.com
安装
brew install git-toolslocal Homebrew formula metadata
sudo port install git-toolsMacPorts ports tree · devel/git-tools/Portfile · 来源: api.github.com
sudo dnf install git-toolsFedora Rawhide package metadata · git-tools · 来源: dl.fedoraproject.org
nix profile install nixpkgs#git-toolsnixpkgs package indexes · pkgs/by-name/gi/git-tools/package.nix · 来源: api.github.com
sudo apt install git-restore-mtimeDebian stable package indexes · git-restore-mtime · 来源: deb.debian.org
概览
Assorted git-related scripts and tools
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
git-branches-rename | cli | 全局可执行文件 | |
git-clone-subset | cli | 全局可执行文件 | |
git-find-uncommitted-repos | cli | 全局可执行文件 | |
git-rebase-theirs | cli | 全局可执行文件 | |
git-restore-mtime | cli | 全局可执行文件 | |
git-strip-merge | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/MestreLion/git-tools
安装元数据
| 软件包键 | 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 Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | git-tools |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
git-tools
nix profile install nixpkgs#git-toolsgit-tools 2025.08-2.fc44
Assorted git-related scripts and tools
https://github.com/MestreLion/git-tools
sudo dnf install git-toolsgit-tools
sudo port install git-toolsgit-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-mtimegit-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来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.