# 使用 Homebrew, apk, MacPorts, Nix, pacman, scoop 安装 gitu

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

## 安装

```sh
sudo av install brew:gitu
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gitu
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gitu
```

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

### Linux

- apk (92%):

```sh
sudo apk add gitu
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#gitu
```

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

- pacman (92%):

```sh
sudo pacman -S gitu
```

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

### Windows

- Scoop (92%):

```sh
scoop install extras/gitu
```

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

## 软件包事实

- **软件包键:** brew:gitu
- **软件包管理器:** Homebrew
- **版本:** 0.43.0
- **来源摘要:** TUI Git client inspired by Magit
- **主页:** <https://github.com/altsem/gitu>
- **仓库:** <https://github.com/altsem/gitu>
- **最后更新:** 2026-07-11T23:35:09Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gitu (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Gitu is a terminal Git client inspired by Magit, the influential Emacs Git porcelain. It aims to bring Magit's keyboard-driven staging, history, commit, branch, stash, and rebase workflows to users outside Emacs.

### 项目历史

The repository was opened in December 2023. Its README describes the project as a Git porcelain outside Emacs and states that Gitu aims to implement many core Magit features over time while staying familiar to previous Magit users.

Early releases moved quickly through the 0.x line in 2024. The README lists support for staging and unstaging files, hunks, and lines; showing commits and opening an editor at a line; branch operations; commit, amend, and fixup flows; fetching, pulling, pushing, rebasing, resetting, reverting, and stashing.

The project also codified terminal configuration early: editor selection follows `VISUAL`, `EDITOR`, and `GIT_EDITOR`, and the documented config file path is `~/.config/gitu/config.toml` on Linux and macOS, with an AppData path on Windows.

### 采用历史

Gitu's packaging spread shows interest beyond its source repository. The input package metadata and install docs cover Cargo, GitHub release binaries, Arch Linux, Nix flakes, mise, Homebrew, MacPorts, pacman, APK, and Scoop. That matters because Git TUIs are often installed as everyday shell tools rather than project-local dependencies.

### 使用方式

Practitioners use Gitu inside Git repositories as a keyboard-first control surface for reviewing changes, staging precise hunks or lines, inspecting logs, committing, switching branches, rebasing, and managing stashes. The help menu and Magit-like key choices reduce the need to remember a long set of standalone Git commands.

The tool sits between raw Git and full graphical clients: it keeps work in a terminal, opens a configured editor when needed, and gives Magit-style workflows to developers who do not live inside Emacs.

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

Gitu is significant as part of the Rust-era Git TUI wave. It competes for the same install slot as tools like gitui and lazygit, but its package identity is sharper: Magit-inspired Git porcelain for terminal users outside Emacs.

### 时间线

- 2023: Public GitHub repository opened.
- 2024: Early 0.x GitHub releases published.
- 2024: Install docs covered Cargo, Arch Linux, release binaries, mise, and Nix flakes.
- 2026: 0.42 release line visible in GitHub releases.

### Related projects

- Magit for Emacs.
- Git terminal UIs such as gitui and lazygit.
- Cargo, Nix flakes, mise, Homebrew, Arch Linux, and Scoop packaging workflows.

### 来源

- <https://api.github.com/repos/altsem/gitu>
- <https://api.github.com/repos/altsem/gitu/releases>
- <https://formulae.brew.sh/formula/gitu>
- <https://github.com/altsem/gitu>
- <https://raw.githubusercontent.com/altsem/gitu/master/README.md>
- <https://raw.githubusercontent.com/altsem/gitu/master/docs/installing.md>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## 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: ~/.config/gitu/config.toml
- Windows: %USERPROFILE%\AppData\Roaming\gitu\config.toml
## 其他软件包管理器记录

- Nix - gitu: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/gitu/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - gitu - 0.43.0-r0: normalized package name match | Alpine Linux edge package indexes: gitu from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | TUI Git client inspired by Magit | https://github.com/altsem/gitu
- apk - gitu-doc - 0.43.0-r0: normalized package name match | Alpine Linux edge package indexes: gitu-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | TUI Git client inspired by Magit (documentation) | https://github.com/altsem/gitu
- pacman - gitu - 0.43.0-2: normalized package name match | Arch Linux sync databases: gitu from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A TUI Git client inspired by Magit | https://github.com/altsem/gitu
- MacPorts - gitu: normalized package name match | MacPorts ports tree: devel/gitu/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - extras/gitu: normalized package name match | Scoop official bucket manifest trees: bucket/gitu.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1


## Combined YAML source

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