Repolode
altsem

altsem/gitu

A terminal user interface for Git, inspired by Magit, for staging, committing, branching, rebasing and more from the keyboard.

Open-source alternative to:GitKrakenSourcetree

Stars
2,936
Forks
171
Open issues
63
Last commit
2 days ago

What is it?

Gitu is a Git client that runs in the terminal, modeled on Magit, the Git interface for Emacs. It lets you work with a repository through a keyboard-driven view of its status, so common Git operations do not require remembering individual command-line flags.

The tool covers staging and unstaging at the file, hunk, or line level, along with committing (including amend and fixup), branching, fetching, pulling and pushing to the configured upstream, logging, rebasing (interactive, autosquash, continue and abort), resetting, reverting commits, and managing stashes. Keybindings follow Magit conventions while staying Vim-like, and a help menu is available with the `h` key.

Gitu is written in Rust and installed as a standalone binary. It opens your configured editor (VISUAL, EDITOR or GIT_EDITOR) for commit messages and file edits, and its behavior can be customized through a TOML config file. Shell completions can be generated from the CLI.

Key features

  • 01Stage and unstage files, hunks, or individual lines
  • 02Commit, amend, and fixup from within the interface
  • 03Branch checkout and creation, plus fetch, pull, and push
  • 04Interactive and autosquash rebasing, along with reset, revert, and stash operations
  • 05Magit-style keybindings with a built-in help menu
  • 06TOML configuration and shell completion generation

Use cases

  • Developers who already use Magit in Emacs and want a similar workflow in a standalone terminal
  • Staging partial changes by hunk or line before committing
  • Cleaning up a branch with interactive rebase or autosquash from the terminal
  • Working over SSH or in environments without a graphical Git client

Topics

FAQ

What is gitu?
A terminal user interface for Git, inspired by Magit, for staging, committing, branching, rebasing and more from the keyboard. Gitu is a Git client that runs in the terminal, modeled on Magit, the Git interface for Emacs. It lets you work with a repository through a keyboard-driven view of its status, so common Git operations do not require remembering individual command-line flags.
Is gitu free to use? What license does it have?
gitu is open source under the MIT license. Check the license terms before using it in commercial products.
Is gitu still maintained?
Actively maintained. The last commit to gitu was on Oct 17, 2026.
What can I use gitu for?
Developers who already use Magit in Emacs and want a similar workflow in a standalone terminal Staging partial changes by hunk or line before committing Cleaning up a branch with interactive rebase or autosquash from the terminal Working over SSH or in environments without a graphical Git client
Where can I get gitu?
The source code and installation instructions are on GitHub: https://github.com/altsem/gitu

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects