Tig is one of those tools that every git user should know. All you must remember is it’s ‘git’ spelled backward, right? It’s a command line tool that makes browsing git history a breeze. It’s excellent for looking at commits, branches, and tags. I prefer it to anything else for browsing history and commits. And while I use emacs+magit for a lot of my more powerful git manipulations, tig comes in handy if I don’t have access to those tools on a system or when I’m working with someone who’s not facile with those tools. One of tig’s other outstanding features is it can stage and unstage parts of your work tree in hunks.
Give it a shot! It’s a must-have tool I put on every system. Here’s a look at my .tigrc config file. This configuration includes all the settings I like.
set line-graphics = utf-8 set show-changes = false set main-view = line-number:no,interval=5 id:yes date:default author:full commit-title:yes,graph,refs,overflow=no bind generic <ESC><LT> move-first-line bind generic <ESC>> move-last-line bind generic <C-v> move-page-down bind generic <ESC>v move-page-up
Check the main website for details, find some Youtube videos, and add an awesome tool to your kit. http://jonas.github.io/tig/
Miscellaneous screenshots of tig in action. First shot is simultaneously viewing commit history and a commit. You can navigate up and down the commit history without closing this window with ‘J’ and ‘K’ by default. Navigate up and down in the diff pane on the right with the ‘j’ and ‘k’ keys. Note the difference in case. Surf through git history with rapid ease.