$ tig
tig - text-mode interface for git
Browse changes in a git repository. Additionally, tig(1) can also act as a pager for output of various git commands.
When browsing repositories, tig(1) uses the underlying git commands to present the user with various views, such as summarized commit log and showing the commit with the log message, diffstat, and the diff.
Using tig(1) as a pager, it will display input from stdin and try to colorize it.
Command line options recognized by tig include all valid git-log(1) and git-diff(1) options, as well as the following subcommands and tig specific options. The first command line parameter not starting with "-" is interpreted as being either a revision specification or a path and will end the option parsing. All following options will be passed untouched to the underlying git command.
Open diff view using the given git show options.
Show given file annotated or blamed by commits. Optionally limited from given revision.
Start up in status view.
Show version and exit.
Show help message and exit.
Display the current branch:
$ tig
Display one or more specific branches:
$ tig test master
Display all branches:
$ tig --all
Display differences between two branches:
$ tig test..master
Display changes for a single file:
$ tig -- README
Display contents of the README file in a specific revision:
$ tig show tig-0.8:README
Display revisions between two dates for a specific file:
$ tig --after="2004-01-01" --before="2006-05-16" -- README
In addition to environment variables used by git (e.g. GIT_DIR), tig defines the following:
Path of the user configuration file (defaults to ~/.tigrc).
Path of the system wide configuration file (defaults to /etc/tigrc).
Set command for retrieving all repository references. The command should output data in the same format as git-ls-remote(1).
The command used for the diff view. By default, git show is used as a backend.
The command used for the log view. If you prefer to have both author and committer shown in the log view be sure to pass --pretty=fuller to git log.
The command used for the main view. Note, you must always specify the option: --pretty=raw since the main view parser expects to read that format.
The command used for the tree view. By default, git-ls-tree(1) is used. The commands should expect first the commit ID and second a path.
The command used for the blob view. By default, git-cat-file(1) is used. The command gets the blob ID.
User configuration file. See git5 for examples.
System wide configuration file.
Repository config file. Read on start-up with the help of git-config(1).
Known bugs and problems:
Proper locale support: in it's current state tig is pretty much UTF-8 only.
Horizontal scrolling.
Copyright (c) 2006-2008 Jonas Fonseca <fonseca@diku.dk>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
git5, git(7), cogito(7), as well as other git repository browsers: gitk(1), qgit(1), gitview(1).
Online resources:
Homepage: http://jonas.nitro.dk/tig/
Tarballs: http://jonas.nitro.dk/tig/releases/
Git URL: git://repo.or.cz/tig.git (mirror) or http://jonas.nitro.dk/tig/tig.git (master)
Gitweb: http://repo.or.cz/w/tig.git