# 使用 Homebrew, apk, apt, dnf, Nix 安装 topgit

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

## 安装

```sh
sudo av install brew:topgit
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install topgit
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add topgit
```

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

- Debian apt (92%):

```sh
sudo apt install topgit
```

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

- dnf (92%):

```sh
sudo dnf install topgit
```

  证据: Fedora Rawhide package metadata: topgit 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#tg
```

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

## 软件包事实

- **软件包键:** brew:topgit
- **软件包管理器:** Homebrew
- **版本:** 0.19.14
- **来源摘要:** Git patch queue manager
- **主页:** <https://repo.or.cz/topgit/pro.git>
- **仓库:** <https://github.com/mackyle/topgit>
- **最后更新:** 2026-06-15T10:21:22-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- tg (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

TopGit is a Git-based patch queue manager exposed through the `tg` command. It was created for people maintaining interdependent patch sets on top of another project, especially where patches must remain reviewable, exportable, and shareable.

### 项目历史

The official changelog starts with TopGit 0.1 in August 2008. Its documentation calls it a different patch queue manager and explains the core idea: instead of storing patches as diff files, TopGit represents each patch as Git branches plus metadata files such as `.topdeps` and `.topmsg`.

The maintained mackyle documentation describes the current TopGit PRO repository, hosted on GitHub and repo.or.cz, as a continuation that fixes bugs and expands the original design. Later 0.19-series releases added features around undo, speed, POSIX portability, compatibility, and internal cleanup.

### 采用历史

TopGit's adoption is specialized rather than mainstream. The input package metadata lists packages in Alpine, Homebrew, Debian, Fedora, Nix, and Ubuntu, which fits its audience: distro maintainers, patch-stack maintainers, and Git users who need more structure than ad hoc branches but still want patch export.

### 使用方式

TopGit is used to create, update, inspect, export, mail, and navigate patch branches. The official overview contrasts it with Quilt: Quilt tracks ordered diff files, while TopGit tracks patch dependencies in Git and can export a quilt-style patch directory when needed.

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

TopGit is significant in package-maintenance culture because it bridges Git-native history and downstream patch queues. It preserves patch-edit history, supports dependency topology beyond a linear series file, and can still produce patch sets for ecosystems that expect diff files.

### 时间线

- 2008: TopGit 0.1 appears in the official changelog.
- 2014: Changelog notes TopGit 0.10.
- 0.19 series: Later maintained releases focus on undo, speed, POSIX portability, compatibility, and internal cleanup.
- Current: mackyle documentation identifies the maintained TopGit PRO repository and full manual.

### Related projects

- Git, Quilt, StGIT, Guilt, git send-email, distro patch queues.

### 来源

- <https://github.com/mackyle/topgit#readme>
- <https://mackyle.github.io/topgit/>
- <https://mackyle.github.io/topgit/topgit.html>
- <https://raw.githubusercontent.com/mackyle/topgit/master/ChangeLog>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - topgit - 0.8-3: normalized package name match | Debian stable package indexes: topgit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | a Git patch queue manager | https://repo.or.cz/w/topgit.git
- Ubuntu apt - topgit - 0.8-3: normalized package name match | Ubuntu 24.04 LTS package indexes: topgit from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | a Git patch queue manager | https://repo.or.cz/w/topgit.git
- apk - topgit - 0.19.13-r1: normalized package name match | Alpine Linux edge package indexes: topgit from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | A different patch queue manager | https://github.com/mackyle/topgit
- apk - topgit-bash-completion - 0.19.13-r1: normalized package name match | Alpine Linux edge package indexes: topgit-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash completions for topgit | https://github.com/mackyle/topgit
- apk - topgit-doc - 0.19.13-r1: normalized package name match | Alpine Linux edge package indexes: topgit-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | A different patch queue manager (documentation) | https://github.com/mackyle/topgit
- dnf - topgit - 0.19.14-4.fc45: normalized package name match | Fedora Rawhide package metadata: topgit from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A different patch queue manager | https://mackyle.github.io/topgit/
- Nix - tg: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/tg/tg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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