# 使用 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/topgit>
- **版本:** 0.19.14
- **来源摘要:** Git patch queue manager
- **主页:** <https://repo.or.cz/topgit/pro.git>
- **仓库:** <https://github.com/mackyle/topgit>
- **上游文档:** <https://repo.or.cz/topgit/pro.git>
- **许可证:** GPL-2.0-only
- **源码归档:** <https://github.com/mackyle/topgit/archive/refs/tags/topgit-0.19.14.tar.gz>
- **最后更新:** 2026-06-15T10:21:22-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- tg (cli)
- tg (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.19.14
- 管理器更新时间: 2026-06-15
- 本地数据: OK
- 上游仓库: https://github.com/mackyle/topgit
- 检测到的最新版本: topgit-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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** topgit
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [stgit](https://pkg.so/zh-hans/brew/stgit/) - Shares pkgdb curated category or tags: cli, developer-tools, git, patch-management, version-control.
- [libgit2](https://pkg.so/zh-hans/brew/libgit2/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [git-lfs](https://pkg.so/zh-hans/brew/git-lfs/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [lazygit](https://pkg.so/zh-hans/brew/lazygit/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [git-gui](https://pkg.so/zh-hans/brew/git-gui/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [tig](https://pkg.so/zh-hans/brew/tig/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [hub](https://pkg.so/zh-hans/brew/hub/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [repo](https://pkg.so/zh-hans/brew/repo/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [git-series](https://pkg.so/zh-hans/brew/git-series/) - Local package facts share a topical domain. Shared terms: cli, control, developer, developer-tools, git.
- [hg-fast-export](https://pkg.so/zh-hans/brew/hg-fast-export/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, git.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
