GitUI is a terminal interface for Git operations. It provides an efficient way to inspect commit logs, manage branches, stage changes, and perform other Git tasks directly from the command line. This tutorial explains how to install GitUI on Ubuntu 26.04.
Prepare environment
Before proceeding, ensure that Git is already installed on the machine. A separate installation post for Git can be followed if required.
Install GitUI
Download the latest GitUI release archive from the official repository:
curl -sSLo gitui.tar.gz https://github.com/gitui-org/gitui/releases/latest/download/gitui-linux-x86_64.tar.gz
Extract the GitUI executable into the /usr/local/bin directory:
sudo tar xf gitui.tar.gz -C /usr/local/bin ./gitui
GitUI version can be checked as follows:
gitui --version
Delete the downloaded archive file:
rm -rf gitui.tar.gz
Testing GitUI
For demonstration purposes, clone the GitUI source repository and move into the project directory:
git clone https://github.com/gitui-org/gitui.git gitui-src && cd gitui-src
Launch GitUI with the following command:
gitui
The interface displays multiple sections for repository management, including changed files, branches, commit history, and stashes. Navigation between sections can be performed using keyboard shortcuts.
Exit the application by pressing the Q key.
Uninstall GitUI
To completely uninstall GitUI, remove the executable file from the system directory:
sudo rm -rf /usr/local/bin/gitui
Delete the local configuration directory as well:
rm -rf ~/.config/gitui
Leave a Comment
Cancel reply