Tig is an ncurses-based text-mode interface for git. It functions mainly as a Git repository browser, but can also assist in staging changes, commits, etc. Tig helps to browse git logs. If you are a terminal lover, Tig is for you, cause it is completely command-driven in Linux. In this tutorial, I am going to share how to install Tig on Ubuntu 20.04. Also, we will look at uses.
So, let’s get started.
Install Tig on Ubuntu 20.04 LTS
Installation of Tig on Ubuntu is super easy. You can install Tig from Ubuntu default software packages using APT(Advanced Package Tool) and another way is from Github.
Tig Installation from Ubuntu Software Packages
Update Ubuntu default software packages and install Tig by following commands.
$ sudo apt update
$ sudo apt install tig
Check the Tig version by the following command
$ tig -v
Tig Installation from Git Repository
First, clone the Tig git repository by the following command.
$ git clone git://github.com/jonas/tig.git
After cloning the repository, install it by running “make” and “make install” commands.
$ make install
Above commands will install Tig on the default bin directory on home. If you want to change the installation location use the following commands.
$ make prefix=/usr/local
$ sudo make install prefix=/usr/local
How to Uninstall Tig
Tig can be uninstalled using the following command.
$ sudo apt remove tig
In this article, you have learned how to install Tig on Ubuntu 20.04. If you have any doubts feel free to contact me, I will definitely try to help you. Also, you can join our elite Facebook group to get direct help from me. If you like this tutorial, please share this article on your social media handle.