# 使用 Homebrew, apk, apt, dnf, zypper 安装 git-gui

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install git-gui
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add git-gui
```

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

- Debian apt (92%):

```sh
sudo apt install git-gui
```

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

- dnf (92%):

```sh
sudo dnf install git-gui
```

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

- zypper (92%):

```sh
sudo zypper install git-gui
```

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

## 软件包事实

- **软件包键:** brew:git-gui
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/git-gui>
- **版本:** 2.55.0
- **来源摘要:** Tcl/Tk UI for the git revision control system
- **主页:** <https://git-scm.com>
- **仓库:** <https://github.com/git/git>
- **上游文档:** <https://git-scm.com>
- **许可证:** GPL-2.0-only
- **源码归档:** <https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.55.0.tar.xz>
- **最后更新:** 2026-06-29T20:54:53Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- git-citool (cli)
- git-gui (cli)
- git-gui--askpass (cli)
- git-gui--askyesno (cli)
- gitk (cli)
- git-citool (别名)
- git-gui (别名)
- git-gui--askpass (别名)
- git-gui--askyesno (别名)
- gitk (别名)

## 依赖

- tcl-tk

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.55.0
- 管理器更新时间: 2026-06-29
- 本地数据: OK
- 上游仓库: https://git-scm.com
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

git gui is the Tcl/Tk graphical commit tool distributed with Git. It sits beside command-line Git and gitk, giving users a visual interface for staging, committing, amending, branching, merging, fetching, and pushing.

### 项目历史

git gui originated in the Git project era of 2006, with early Git source history and the program copyright naming Shawn O. Pearce and other contributors. Git documentation describes the tool as an independently maintained project whose stable versions are distributed with the Git suite for end-user convenience.

The Git source history shows git-gui being merged into the main Git repository in February 2007 and then regularly synchronized from the standalone git-gui line. The Git manual also points to a separate git-gui repository, while package managers often ship it as a split package so users can install the GUI without changing the core command-line Git package.

### 采用历史

git gui gained adoption through Git itself rather than through a separate plugin ecosystem. Its significance comes from being a cross-platform graphical front end bundled with the dominant distributed version control system and packaged by Unix-like distributions as a companion to gitk and Tcl/Tk.

### 使用方式

Practitioners use git gui when they want a visual staging area, commit editor, blame-style single-file annotation, and basic repository actions without leaving Git's native tooling. The `citool` mode starts a reduced interface intended to make exactly one commit and return to the shell.

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

For packagers, git gui is a classic split-package case: it belongs to Git's tool family, depends on Tcl/Tk, overlaps with gitk, and is useful to users who want a small native GUI rather than a full Git desktop client.

### 时间线

- 2006: Early git-gui development appears in Git source history under Shawn O. Pearce.
- 2007: git-gui is merged into the Git source tree for distribution with Git.
- 2010: The script copyright range in Git source reaches 2006-2010 for Shawn Pearce and other contributors.
- 2013-2016: Git source history records tagged gitgui releases merged from the standalone git-gui line.

### Related projects

- gitk is the sibling repository browser for viewing commit history and diffs; git gui can launch gitk from its visualization actions. Git itself supplies the command-line plumbing and porcelain that git gui wraps.

### 来源

- <https://git-scm.com/docs/git-gui>
- <https://git.kernel.org/pub/scm/git/git.git/log/git-gui>
- <https://git.kernel.org/pub/scm/git/git.git/plain/git-gui/git-gui.sh>


## 安全说明

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:** git-gui
- **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

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

- Debian apt - git-gui - 1:2.47.3-0+deb13u1: normalized package name match | Debian stable package indexes: git-gui from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | fast, scalable, distributed revision control system (GUI) | https://git-scm.com/
- Ubuntu apt - git-gui - 1:2.43.0-1ubuntu7: normalized package name match | Ubuntu 24.04 LTS package indexes: git-gui from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | fast, scalable, distributed revision control system (GUI) | https://git-scm.com/
- apk - git-gui - 2.55.0-r0: normalized package name match | Alpine Linux edge package indexes: git-gui from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GUI interface for git | https://www.git-scm.com/
- dnf - git-gui - 2.55.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: git-gui from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Graphical interface to Git | https://git-scm.com/
- zypper - git-gui - 2.55.0-2.3: normalized package name match | openSUSE Tumbleweed package metadata: git-gui from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Grapical tool for common git operations | https://git-scm.com/
- Debian apt - gitk - 1:2.47.3-0+deb13u1: installed executable or alias match | Debian stable package indexes: gitk from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | fast, scalable, distributed revision control system (revision tree visualizer) | https://git-scm.com/
- Ubuntu apt - gitk - 1:2.43.0-1ubuntu7: installed executable or alias match | Ubuntu 24.04 LTS package indexes: gitk from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | fast, scalable, distributed revision control system (revision tree visualizer) | https://git-scm.com/
- dnf - gitk - 2.55.0-2.fc45: installed executable or alias match | Fedora Rawhide package metadata: gitk from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Git repository browser | https://git-scm.com/
- zypper - gitk - 2.55.0-2.3: installed executable or alias match | openSUSE Tumbleweed package metadata: gitk from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Git revision tree visualiser | https://git-scm.com/


## 相关链接

- [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.
- [tcl-tk](https://pkg.so/zh-hans/brew/tcl-tk/) - Runtime dependency declared by Homebrew.
- [git-cola](https://pkg.so/zh-hans/brew/git-cola/) - Popular package that depends on this formula.
- [git](https://pkg.so/zh-hans/brew/git/) - Shares the same upstream homepage.
- [git-svn](https://pkg.so/zh-hans/brew/git-svn/) - Shares the same upstream homepage.
- [git-credential-libsecret](https://pkg.so/zh-hans/brew/git-credential-libsecret/) - Shares the same upstream homepage.
- [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.
- [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.

## Combined YAML source

View the package source record on GitHub. [combined/git-gui.yml](https://github.com/mxcl/pkgdb/blob/main/combined/git-gui.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
