tig [options] [revisions] [--] [paths] tig log [options] [revisions] [--] [paths] tig show [options] [revisions] [--] [paths] tig blame [options] [rev] [--] path tig stash tig status tig < [Git command output]
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.
show
blame
status
log
+<number>
-v, --version
-h, --help
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 sub-module versions:
$ tig --submodule
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
Blame file with copy detection enabled:
$ tig blame -C README
Display the list of stashes:
$ tig stash
In addition to environment variables used by Git (e.g. GIT_DIR), Tig defines the ones below. The command related environment variables have access to the internal state of Tig via replacement variables, such as %(commit) and %(blob). See tigrc(5) for a full list.
TIGRC_USER
TIGRC_SYSTEM
TIG_LS_REMOTE
TIG_DIFF_OPTS
TIG_TRACE
~/.tigrc
/etc/tigrc
$GIT_DIR/config, '~/.gitconfig, '/etc/gitconfig
Copyright (c) 2006-2012 Jonas Fonseca <fonseca@diku.dk[1]>
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.