# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 gitui

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

## 安装

```sh
sudo av install brew:gitui
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gitui
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gitui
```

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

### Linux

- apk (92%):

```sh
sudo apk add gitui
```

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

- dnf (92%):

```sh
sudo dnf install gitui
```

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

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

- pacman (92%):

```sh
sudo pacman -S gitui
```

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

- zypper (92%):

```sh
sudo zypper install gitui
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/gitui
```

  证据: Scoop official bucket manifest trees: bucket/gitui.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id StephanDilly.gitui -e
```

  证据: Windows Package Manager source index: StephanDilly.gitui from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:gitui
- **软件包管理器:** Homebrew
- **版本:** 0.28.1
- **来源摘要:** Blazing fast terminal-ui for git written in rust
- **主页:** <https://github.com/gitui-org/gitui>
- **仓库:** <https://github.com/gitui-org/gitui>
- **最后更新:** 2026-06-22T14:03:33-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gitui (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

GitUI is a Rust terminal interface for Git that gives command-line users many comforts of a graphical Git client without leaving the terminal. Its emphasis is fast, keyboard-only interaction for common Git tasks such as staging, diffs, commits, branches, stashes, logs, and remotes.

### 项目历史

The public repository was opened in March 2020, and the crate was published to crates.io shortly afterward. The README explains the motivation: the author did most Git work in a terminal but still reached for graphical clients for index, commit, diff, stash, blame, and log workflows, while some GUI clients struggled with very large repositories.

GitUI's early releases began in April 2020. The project grew around a responsive terminal UI, async Git API use, context-based help, and keyboard-only control. The README's benchmark section compared parsing the Linux repository against lazygit and tig in a RustBerlin presentation, positioning performance on large repositories as part of its identity.

As the project matured, customization became a first-class part of its package surface. Separate docs describe RON-based theme files, key bindings, and key-symbol overrides, with platform-specific config locations for Linux, macOS, and Windows.

### 采用历史

GitUI has broad package-manager reach for a terminal Git client. The README lists Arch Linux, Fedora, openSUSE, Homebrew, MacPorts, WinGet, Scoop, Chocolatey, mise, Nix, Termux, Anaconda, Cargo, and release binaries. crates.io records the crate, repository, and download data, while Homebrew packages it as a stable formula.

That packaging spread reflects the tool's practical niche: it is installed globally by developers who want a fast Git workbench available in any repository, independent of an editor plugin or desktop GUI.

### 使用方式

Practitioners launch `gitui` inside a Git repository to inspect status, stage or unstage files and hunks, commit or amend, manage stashes, browse and search logs, push or fetch remotes, and work with branches. The README notes that GitUI complements the Git shell rather than fully replacing it.

Customization workflows center on `theme.ron`, `key_bindings.ron`, and `key_symbols.ron`. Users tune colors, syntax themes, navigation keys, and displayed key symbols while keeping the main workflow terminal-native.

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

GitUI is one of the better-known Rust Git TUIs and a useful example of a single-binary developer tool that package managers carry widely. It also demonstrates a common modern pattern: Git as the substrate, Rust for portable performance, and config files in XDG/AppData locations for long-term daily use.

### 时间线

- 2020: Public GitHub repository opened.
- 2020: Crate publication recorded on crates.io.
- 2020: Early GitHub 0.1 releases published.
- 2025: README documented a 1.0 roadmap and extensive package-manager install options.
- 2026: 0.28 release line visible in GitHub releases.

### Related projects

- Git command-line workflows.
- lazygit and tig as benchmarked Git TUI peers.
- Rust terminal UI and crossterm/ratatui-style configuration ecosystems.
- Homebrew, Cargo, Nix, Scoop, WinGet, and distro package collections.

### 来源

- <https://api.github.com/repos/gitui-org/gitui>
- <https://api.github.com/repos/gitui-org/gitui/releases>
- <https://crates.io/api/v1/crates/gitui>
- <https://crates.io/crates/gitui>
- <https://formulae.brew.sh/formula/gitui>
- <https://github.com/gitui-org/gitui>
- <https://raw.githubusercontent.com/gitui-org/gitui/master/KEY_CONFIG.md>
- <https://raw.githubusercontent.com/gitui-org/gitui/master/README.md>
- <https://raw.githubusercontent.com/gitui-org/gitui/master/THEMES.md>


## 安全说明

narrow executable package without higher-risk signals.

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


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

- Linux: $XDG_CONFIG_HOME/gitui/theme.ron, ~/.config/gitui/theme.ron, $XDG_CONFIG_HOME/gitui/key_bindings.ron, ~/.config/gitui/key_bindings.ron, $XDG_CONFIG_HOME/gitui/key_symbols.ron, ~/.config/gitui/key_symbols.ron
- macOS: ~/.config/gitui/theme.ron, ~/.config/gitui/key_bindings.ron, ~/.config/gitui/key_symbols.ron
- Windows: %APPDATA%/gitui/theme.ron, %APPDATA%/gitui/key_bindings.ron, %APPDATA%/gitui/key_symbols.ron
## 其他软件包管理器记录

- Nix - gitui: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/gitui/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - gitui - 0.28.1-r0: normalized package name match | Alpine Linux edge package indexes: gitui from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Blazing fast terminal client for git | https://github.com/extrawurst/gitui
- dnf - gitui - 0.28.1-3.fc45: normalized package name match | Fedora Rawhide package metadata: gitui from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Blazing fast terminal-ui for git | https://crates.io/crates/gitui
- pacman - gitui - 0.28.1-2: normalized package name match | Arch Linux sync databases: gitui from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Blazing fast terminal-ui for git written in Rust | https://github.com/extrawurst/gitui
- zypper - gitui - 0.28.1-1.3: normalized package name match | openSUSE Tumbleweed package metadata: gitui from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Terminal UI for git | https://github.com/extrawurst/gitui
- MacPorts - gitui: normalized package name match | MacPorts ports tree: devel/gitui/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/gitui: normalized package name match | Scoop official bucket manifest trees: bucket/gitui.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - StephanDilly.gitui: normalized package name match | Windows Package Manager source index: StephanDilly.gitui from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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