# Install gitu with Homebrew, apk, MacPorts, Nix, pacman, scoop

TUI Git client inspired by Magit. Version 0.42.0 via Homebrew; verified 2026-05-22.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gitu
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gitu
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:gitu
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gitu>
- **Version:** 0.42.0
- **Source summary:** TUI Git client inspired by Magit
- **Homepage:** <https://github.com/altsem/gitu>
- **Repository:** <https://github.com/altsem/gitu>
- **Upstream docs:** <https://github.com/altsem/gitu#readme>
- **License:** MIT
- **Source archive:** <https://github.com/altsem/gitu/archive/refs/tags/v0.42.0.tar.gz>
- **Last updated:** 2026-05-22T21:00:22Z
- **Generated:** 2026-07-09T07:20:21+00:00

## Executables

- gitu (cli)
- gitu (alias)

## Build dependencies

- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-09
- Package-manager version: 0.42.0
- Package-manager updated: 2026-05-22
- Local data: ok
- Upstream repository: https://github.com/altsem/gitu
- Upstream latest detected: v0.42.0 (current)
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

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

- **Geiger risk:** blue / medium
- 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
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gitu
- **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

## Other Package-Manager Records

- 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.42.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.42.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.42.0-1: 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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [gitui](https://www.automicvault.com/pkg/brew/gitui/) - Shares av.db curated category or tags: cli, developer-tools, git, rust, terminal.
- [serie](https://www.automicvault.com/pkg/brew/serie/) - Shares av.db curated category or tags: cli, developer-tools, git, terminal, tui.
- [committed](https://www.automicvault.com/pkg/brew/committed/) - Shares av.db curated category or tags: cli, developer-tools, git, rust, version-control.
- [diff-so-fancy](https://www.automicvault.com/pkg/brew/diff-so-fancy/) - Shares av.db curated category or tags: cli, developer-tools, git, terminal, version-control.
- [diffnav](https://www.automicvault.com/pkg/brew/diffnav/) - Shares av.db curated category or tags: cli, developer-tools, git, tui, version-control.
- [flowrs](https://www.automicvault.com/pkg/brew/flowrs/) - Shares av.db curated category or tags: cli, developer-tools, terminal, terminal-ui, tui.
- [garden](https://www.automicvault.com/pkg/brew/garden/) - Shares av.db curated category or tags: cli, developer-tools, git, rust, version-control.
- [git-grab](https://www.automicvault.com/pkg/brew/git-grab/) - Shares av.db curated category or tags: cli, developer-tools, git, rust, version-control.

## Combined YAML source

View the package source record on GitHub. [combined/gitu.yml](https://github.com/automic-vault/db/blob/main/combined/gitu.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
