# Install git-tools with Homebrew, dnf, MacPorts, Nix, apt

Assorted git-related scripts and tools. Version 2025.08 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:git-tools
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install git-tools
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install git-tools
```

  Evidence: MacPorts ports tree: devel/git-tools/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- dnf (92%):

```sh
sudo dnf install git-tools
```

  Evidence: 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

- Nix (92%):

```sh
nix profile install nixpkgs#git-tools
```

  Evidence: nixpkgs package indexes: pkgs/by-name/gi/git-tools/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- Debian apt (92%):

```sh
sudo apt install git-restore-mtime
```

  Evidence: Debian stable package indexes: git-restore-mtime from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## Package facts

- **Package key:** brew:git-tools
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/git-tools>
- **Version:** 2025.08
- **Source summary:** Assorted git-related scripts and tools
- **Homepage:** <https://github.com/MestreLion/git-tools>
- **Repository:** <https://github.com/MestreLion/git-tools>
- **Upstream docs:** <https://github.com/MestreLion/git-tools#readme>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://github.com/MestreLion/git-tools/archive/refs/tags/v2025.08.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- 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)
- git-branches-rename (alias)
- git-clone-subset (alias)
- git-find-uncommitted-repos (alias)
- git-rebase-theirs (alias)
- git-restore-mtime (alias)
- git-strip-merge (alias)

## Uses from macOS

- python

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2025.08
- Local data: ok
- Upstream repository: https://github.com/MestreLion/git-tools
- Upstream latest detected: v2025.08 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <https://api.github.com/repos/MestreLion/git-tools>
- <https://formulae.brew.sh/formula/git-tools>
- <https://github.com/MestreLion/git-tools>
- <https://github.com/MestreLion/git-tools/tree/main/man1>
- <https://raw.githubusercontent.com/MestreLion/git-tools/main/README.md>
- <https://tracker.debian.org/pkg/git-mestrelion-tools>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **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:** head, stable

## Other Package-Manager Records

- Nix - git-tools: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/git-tools/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - git-tools - 2025.08-2.fc44: normalized package name match | 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 | Assorted git-related scripts and tools | https://github.com/MestreLion/git-tools
- MacPorts - git-tools: normalized package name match | MacPorts ports tree: devel/git-tools/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - git-restore-mtime - 2022.12-1: installed executable or alias match | Debian stable package indexes: git-restore-mtime from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | set timestamps to the date of a file's last commit | https://github.com/MestreLion/git-tools
- Ubuntu apt - git-restore-mtime - 2022.12-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: git-restore-mtime from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | set timestamps to the date of a file's last commit | https://github.com/MestreLion/git-tools


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [git](https://www.automicvault.com/pkg/brew/git/) - Package name indicates the same formula family.
- [cvsutils](https://www.automicvault.com/pkg/brew/cvsutils/) - Shares av.db curated category or tags: cli, developer-tools, utilities, version-control.
- [git-fresh](https://www.automicvault.com/pkg/brew/git-fresh/) - Shares av.db curated category or tags: cli, developer-tools, git, repository-maintenance, version-control.
- [aicommit](https://www.automicvault.com/pkg/brew/aicommit/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [aicommit2](https://www.automicvault.com/pkg/brew/aicommit2/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [aicommits](https://www.automicvault.com/pkg/brew/aicommits/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [braid](https://www.automicvault.com/pkg/brew/braid/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [cig](https://www.automicvault.com/pkg/brew/cig/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [codeberg-cli](https://www.automicvault.com/pkg/brew/codeberg-cli/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [git-trim](https://www.automicvault.com/pkg/brew/git-trim/) - Package names and metadata indicate a similar tool family. Shared terms: branches, cli, control, developer, developer-tools.
- [git-delete-merged-branches](https://www.automicvault.com/pkg/brew/git-delete-merged-branches/) - Package names and metadata indicate a similar tool family. Shared terms: branches, cli, control, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/git-tools.yml](https://github.com/automic-vault/db/blob/main/combined/git-tools.yml)


## Sources

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