Gitwig (derived from Git + Twig, representing repository branches) is a lightweight, keyboard-driven Terminal Git UI (TUI) designed as a fast, minimal alternative to desktop Git GUI clients like SourceTree and terminal clients like lazygit and gitui. Built with Rust and ratatui, Gitwig presents all your Git repositories, worktrees, stashes, and branches in a clean, interactive bordered layout directly inside your terminal window.
🌐 Website: gitwig.dev · 📖 Documentation: docs.gitwig.dev
Most terminal Git tools like lazygit and gitui focus on one repository at a time. Gitwig brings the multi-repository project overview of desktop Git GUIs like SourceTree straight into your terminal—pairing fast native Rust performance with full workspace inspection, branch graphs, GitHub PR/issue workflows, and an embedded shell in a single keyboard-driven interface.
- Multi-Repository Workspace: Monitor all your repos from one home screen with background auto-refresh, scheduled auto-fetch, pinning, favorites, card/compact/tile view modes, and persistent label project filters.
- Full-Screen Detail View: Inspect and act across dedicated tabs for Workspace (stage/unstage/diff/commit), Files tree with preview, Commit Graph, Branches, Tags, Remotes, Stashes, Worktrees, Submodules, Reflog, and Bisect.
- Partial Stashing & Conflict Resolution: Stash selected files, individual diff hunks, or single lines (
z), and launch your configured externalgit mergetooldirectly from the TUI. - GitHub / Forge Integration: View pull requests, issues, status checks, and reviews, check out PR branches, and post inline line review comments asynchronously.
- Embedded Terminal Panel & Command Palette: Toggle a persistent PTY shell docked inside the TUI (
t/Ctrl-T) or fuzzy-search every available action and keybinding (Ctrl-P). - Global Search, Workspace Sync & Insights: Search code across all tracked repositories (
Ctrl-F), auto-discover repos inwatch_dirs, manage Git LFS files, customize themes via TOML, and view a 52-week Usage Dashboard (U).
Homebrew (macOS / Linux):
brew tap tareqmy/tap
brew install gitwigShell Script (macOS / Linux):
curl -fsSL https://raw.githubusercontent.com/tareqmy/gitwig/master/scripts/install.sh | shPowerShell (Windows):
irm https://raw.githubusercontent.com/tareqmy/gitwig/master/scripts/install.ps1 | iexChocolatey (Windows):
choco install gitwigCargo (Rust):
cargo install gitwigNix (Flake):
nix run github:tareqmy/gitwigLaunch Gitwig with gitwig or the short alias gtg. See Installation & Running or docs.gitwig.dev for full setup and uninstall instructions.
To play the interactive terminal recording locally:
asciinema play resources/preview.castThe complete documentation is available online at docs.gitwig.dev.
You can also explore the raw markdown files below:
Explore the features, configuration, and controls of Gitwig:
- 🚀 Installation & Running
- ✨ Features
- ⌨️ Keybindings
- 📂 Item Status Indicators
- 🔍 Detail View
- 🖥️ Panels & UI Windows
- 🔧 Configuration
- 🎨 Font & Symbol Support
A huge thank you to the following friends who helped with Quality Assurance (QA) and testing to make Gitwig more robust:
