Tig – Git interface on command line

It’s not easy to view the Git log in command line but most of the time is the most straight forward way or sometimes, the only way you could view the Git commit history.

Tig is a ncurses-based interface to view your Git repository.

Installation on OS X using Homebrew:

brew install tig

 

Installation on Ubuntu:

apt-get install tig

 

After the installation, go to your any of your local repository and execute the tig command. You could browse all the commit entries using the arrow keys.
tig-1
 

Press d and you could view the diff of a specific commit history.
tig-2
 

Press q to return to the previous view and press h to view the tig command help.
tig-3
 

Done =)

Reference:

Advertisement

One thought on “Tig – Git interface on command line”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.