Last Updated: February 25, 2016
·
1.151K
· gokceneraslan

Using tig pager mode with ordinary patch/diff

tig is a very clever git repository browser. In addition to its normal usage (which is the sole "tig" command), you may use it as a pager and pass the git command output to it:

git show | tig

You may also use tig with ordinary unified diff output, for example:

diff -u a.txt b.txt | tig

or you may even browse your patches using tig:

tig < some_patch_file.patch