# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 git-extras

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install git-extras
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install git-extras
```

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

### Linux

- apk (92%):

```sh
sudo apk add git-extras
```

  证据: Alpine Linux edge package indexes: git-extras from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install git-extras
```

  证据: Debian stable package indexes: git-extras from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install git-extras
```

  证据: Fedora Rawhide package metadata: git-extras from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

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

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

- pacman (92%):

```sh
sudo pacman -S git-delta
```

  证据: Arch Linux sync databases: git-delta from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install git-delta
```

  证据: openSUSE Tumbleweed package metadata: git-delta from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:git-extras
- **软件包管理器:** Homebrew
- **版本:** 7.5.0
- **来源摘要:** Small git utilities
- **主页:** <https://github.com/tj/git-extras>
- **仓库:** <https://github.com/tj/git-extras>
- **最后更新:** 2026-05-10T04:40:26Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- git-abort (别名)
- git-alias (别名)
- git-archive-file (别名)
- git-authors (别名)
- git-browse (别名)
- git-browse-ci (别名)
- git-brv (别名)
- git-bulk (别名)
- git-changelog (别名)
- git-clear (别名)
- git-clear-soft (别名)
- git-coauthor (别名)
- git-commits-since (别名)
- git-continue (别名)
- git-contrib (别名)
- git-count (别名)
- git-cp (别名)
- git-create-branch (别名)
- git-delete-branch (别名)
- git-delete-merged-branches (别名)
- git-delete-squashed-branches (别名)
- git-delete-submodule (别名)
- git-delete-tag (别名)
- git-delta (别名)
- git-effort (别名)
- git-extras (别名)
- git-feature (别名)
- git-force-clone (别名)
- git-fork (别名)
- git-fresh-branch (别名)
- git-get (别名)
- git-gh-pages (别名)
- git-graft (别名)
- git-guilt (别名)
- git-ignore (别名)
- git-ignore-io (别名)
- git-info (别名)
- git-local-commits (别名)
- git-lock (别名)
- git-locked (别名)
- git-magic (别名)
- git-merge-into (别名)
- git-merge-repo (别名)
- git-missing (别名)
- git-mr (别名)
- git-obliterate (别名)
- git-paste (别名)
- git-pr (别名)
- git-psykorebase (别名)
- git-pull-request (别名)
- git-reauthor (别名)
- git-rebase-patch (别名)
- git-release (别名)
- git-rename-branch (别名)
- git-rename-file (别名)
- git-rename-remote (别名)
- git-rename-tag (别名)
- git-repl (别名)
- git-reset-file (别名)
- git-root (别名)
- git-rscp (别名)
- git-scp (别名)
- git-sed (别名)
- git-setup (别名)
- git-show-merged-branches (别名)
- git-show-tree (别名)
- git-show-unmerged-branches (别名)
- git-squash (别名)
- git-stamp (别名)
- git-standup (别名)
- git-summary (别名)
- git-sync (别名)
- git-touch (别名)
- git-undo (别名)
- git-unlock (别名)
- git-unwip (别名)
- git-utimes (别名)
- git-wip (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 7.5.0
## 项目历史与用法

git-extras is a long-running collection of small Git subcommands. It packages workflow helpers for branch creation, changelogs, summaries, releases, cleanup, browsing, ignore-file generation, and other tasks that Git users often script locally.

### 项目历史

The repository began in August 2010 under TJ Holowaychuk. Early commits and 0.0.x tags established the project's pattern: many small `git-*` executables installed so Git can dispatch them as `git <name>` subcommands.

The project reached 1.0.0 in February 2012 and continued through major release lines over the following decade. Its command set grew into dozens of utilities documented in `Commands.md`, including `git summary`, `git feature`, `git changelog`, `git effort`, `git ignore`, `git release`, `git undo`, and branch-cleanup helpers.

Version 6.4 in 2022 changed the assumed default branch from `master` to `main` while leaving configuration overrides through `git-extras.default-branch` or Git's `init.defaultBranch`. That change reflects how the project tracks common Git hosting conventions while preserving user configuration.

### 采用历史

git-extras is packaged broadly enough to appear in Homebrew, Debian and Ubuntu, Fedora-family distributions, MacPorts, Nix, Arch-family repositories, and other package-manager indexes represented in the input metadata.

Its ecosystem role is partly cultural: before every team had bespoke Git aliases, shell snippets, and hosted pull-request tools, git-extras collected common shell workflows into named Git subcommands with man pages and completions.

### 使用方式

Practitioners install the package and then run commands through Git's subcommand mechanism, for example `git summary`, `git feature`, `git changelog`, `git release`, `git ignore`, `git undo`, or `git delete-merged-branches`.

Some commands read or write Git configuration in `.git/config` or `~/.gitconfig`; the README documents branch-name defaults through `git-extras.default-branch` and `init.defaultBranch`. The package is therefore often used as a personal workflow layer on top of plain Git.

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

git-extras matters because it is a package of shell-level affordances rather than a single tool. It demonstrates Git's command-discovery design: any executable named `git-foo` on PATH can become `git foo`.

It also creates package-manager edge cases. Some commands overlap with standalone tools, including the `git-delete-merged-branches` name clash documented by the standalone branch-cleanup project.

### 时间线

- 2010: The repository begins and 0.0.x tags are released.
- 2012: Version 1.0.0 is released.
- 2014: Version 2.x releases continue expanding the command collection.
- 2015: Versions 3.0.0 and 4.0.0 are released.
- 2020: Version 6.0.0 is released.
- 2022: Version 6.4.0 changes the assumed default branch name to `main`.
- 2023: Version 7.0.0 is released.
- 2026: Version 7.5.0 is released.

### Related projects

- Git itself is the host command framework that discovers git-extras executables.
- hub, gh, diff-so-fancy, delta, and standalone branch-cleanup tools occupy adjacent Git workflow-helper territory.
- git-delete-merged-branches is directly related because both packages can provide a command with the same name.

### 来源

- <https://formulae.brew.sh/formula/git-extras documents Homebrew packaging.>
- <https://github.com/tj/git-extras documents the README, installation, command list, default-branch behavior, and contribution workflow.>
- <https://github.com/tj/git-extras/blob/master/Commands.md documents the command surface.>
- <https://github.com/tj/git-extras/blob/master/History.md documents release history.>


## 安全说明

没有找到 git-extras 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .git/config, ~/.gitconfig
## 其他软件包管理器记录

- Debian apt - git-extras - 7.3.0-1: normalized package name match | Debian stable package indexes: git-extras from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Extra commands for git | https://github.com/tj/git-extras
- Nix - git-extras: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/git-extras/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - git-extras - 7.1.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: git-extras from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Extra commands for git | https://github.com/tj/git-extras
- apk - git-extras - 7.4.0-r0: normalized package name match | Alpine Linux edge package indexes: git-extras from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Little git extras | https://github.com/tj/git-extras
- apk - git-extras-bash-completion - 7.4.0-r0: normalized package name match | Alpine Linux edge package indexes: git-extras-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash completions for git-extras | https://github.com/tj/git-extras
- apk - git-extras-doc - 7.4.0-r0: normalized package name match | Alpine Linux edge package indexes: git-extras-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Little git extras (documentation) | https://github.com/tj/git-extras
- dnf - git-extras - 7.3.0-5.fc45: normalized package name match | Fedora Rawhide package metadata: git-extras from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Little git extras | https://github.com/tj/git-extras
- MacPorts - git-extras: normalized package name match | MacPorts ports tree: devel/git-extras/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- MacPorts - git-delta: installed executable or alias match | MacPorts ports tree: textproc/git-delta/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - git-delete-merged-branches - 7.5.0-1: installed executable or alias match | Debian stable package indexes: git-delete-merged-branches from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | command-line tool to delete merged git branches | https://github.com/hartwork/git-delete-merged-branches
- Debian apt - git-delta - 0.18.2-4+b1: installed executable or alias match | Debian stable package indexes: git-delta from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | syntax-highlighting pager for git, diff, and grep output | https://dandavison.github.io/delta/
- Debian apt - python3-git-delete-merged-branches - 7.5.0-1: installed executable or alias match | Debian stable package indexes: python3-git-delete-merged-branches from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | command-line tool to delete merged git branches (Python module) | https://github.com/hartwork/git-delete-merged-branches
- Nix - git-delete-merged-branches: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/gi/git-delete-merged-branches/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - git-delete-merged-branches - 7.4.0-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: git-delete-merged-branches from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | command-line tool to delete merged git branches | https://github.com/hartwork/git-delete-merged-branches
- Ubuntu apt - git-delta - 0.16.5-5: installed executable or alias match | Ubuntu 24.04 LTS package indexes: git-delta from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | syntax-highlighting pager for git, diff, and grep output | https://dandavison.github.io/delta/
- Ubuntu apt - python3-git-delete-merged-branches - 7.4.0-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: python3-git-delete-merged-branches from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | command-line tool to delete merged git branches (Python module) | https://github.com/hartwork/git-delete-merged-branches


## Combined YAML source

View the package source record on GitHub. [combined/git-extras.yml](https://github.com/mxcl/pkgdb/blob/main/combined/git-extras.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
