
git-graph-tui: A Git Graph for Your Terminal, Now Open Source
Terminal git tools usually make you choose. Some draw a beautiful graph but are read-only. Others manage git well, but their graph is an afterthought. The Git Graph extension for VS Code is loved because it does both: you see the whole repository at a glance and act on it right where you look.
We wanted that without leaving the terminal, so we built it and released it as open source: git-graph-tui.
What it does
git-graph-tui is one native binary, ggt, that works in any terminal, over SSH and inside tmux. It draws every branch, tag and stash as a colored graph, and you act on it with a right-click.
- A clear graph. Colored lanes, branch, tag and stash badges, and uncommitted changes at the top.
- Right-click anything. Checkout, merge, rebase, cherry-pick, revert, reset, push, pull, tag and more.
- Mouse and keyboard. Click, double-click and scroll, or do everything from the keyboard.
- Source Control pane. Stage, unstage, discard and commit, with amend and sign-off.
- Commit details. Changed files as a tree with
+/-counts and a built-in diff viewer. - Power tools. Interactive rebase, conflict banner with continue and abort, reflog recovery, worktrees and commit comparison.
- Safe by default. Every destructive action asks first and says exactly what will happen.
It is written in Rust with Ratatui, loads history in pages and never blocks the UI. Its only runtime dependency is git.
Try it
brew install allient/tap/git-graph-tui
cd your-repository
ggtPrebuilt binaries for macOS, Linux and Windows are on the releases page, and the documentation has guides with screenshots.
Why we open-sourced it
We build software for a living, and we spend our days in the terminal. This is a tool we wanted for ourselves, and a graph you can act on is useful to anyone who works with git. It is MIT-licensed, so use it, fork it or send us a pull request.
If you find it useful, a star on GitHub helps other developers find it. You can see more of what we publish at github.com/allient.
Want to see what Allient can do for your business?
Get a Free Quote