6 tig - text-mode interface for git
11 tig [options] [revisions] [--] [paths]
12 tig log [options] [revisions] [--] [paths]
13 tig show [options] [revisions] [--] [paths]
17 tig < [git command output]
21 Browse changes in a git repository. Additionally, tig(1) can also act
22 as a pager for output of various git commands.
24 When browsing repositories, tig(1) uses the underlying git commands
25 to present the user with various views, such as summarized commit log
26 and showing the commit with the log message, diffstat, and the diff.
28 Using tig(1) as a pager, it will display input from stdin and try
34 Command line options recognized by tig include all valid git-log(1) and
35 git-diff(1) options, as well as the following subcommands and tig specific
36 options. The first command line parameter not starting with "-" is interpreted
37 as being either a revision specification or a path and will end the option
38 parsing. All following options will be passed untouched to the underlying git
42 Open log view using the given git log options.
45 Open diff view using the given git show options.
48 Show given file annotated or blamed by commits.
49 Optionally limited from given revision.
52 Start up in branch view.
55 Start up in status view.
58 Show version and exit.
61 Show help message and exit.
66 Display the current branch:
67 -----------------------------------------------------------------------------
69 -----------------------------------------------------------------------------
71 Display one or more specific branches:
72 -----------------------------------------------------------------------------
74 -----------------------------------------------------------------------------
77 -----------------------------------------------------------------------------
79 -----------------------------------------------------------------------------
81 Display differences between two branches:
82 -----------------------------------------------------------------------------
84 -----------------------------------------------------------------------------
86 Display changes for a single file:
87 -----------------------------------------------------------------------------
89 -----------------------------------------------------------------------------
91 Display contents of the README file in a specific revision:
92 -----------------------------------------------------------------------------
93 $ tig show tig-0.8:README
94 -----------------------------------------------------------------------------
96 Display revisions between two dates for a specific file:
97 -----------------------------------------------------------------------------
98 $ tig --after="2004-01-01" --before="2006-05-16" -- README
99 -----------------------------------------------------------------------------
101 ENVIRONMENT VARIABLES
102 ---------------------
104 In addition to environment variables used by git (e.g. GIT_DIR), tig defines
105 the ones below. The command related environment variables have access to the
106 internal state of tig via replacement variables, such as `%(commit)` and
107 `%(blob)`. See manpage:tigrc[5] for a full list.
110 Path of the user configuration file (defaults to `~/.tigrc`).
113 Path of the system wide configuration file (defaults to
114 `{sysconfdir}/tigrc`).
117 Set command for retrieving all repository references. The command
118 should output data in the same format as git-ls-remote(1).
121 The command used for the diff view. By default, git show is used
125 The command used for the log view. If you prefer to have both
126 author and committer shown in the log view be sure to pass
127 `--pretty=fuller` to git log.
130 The command used for the main view. Note, you must always specify
131 the option: `--pretty=raw` since the main view parser expects to
137 The command used for the tree view. By default, git-ls-tree(1) is
141 The command used for the blob view. By default, git-cat-file(1) is
147 User configuration file. See manpage:tigrc[5] for examples.
149 '{sysconfdir}/tigrc'::
150 System wide configuration file.
154 '{sysconfdir}/etc/gitconfig::
155 Git configuration files. Read on start-up with the help of
162 Copyright (c) 2006-2009 Jonas Fonseca <fonseca@diku.dk>
164 This program is free software; you can redistribute it and/or modify
165 it under the terms of the GNU General Public License as published by
166 the Free Software Foundation; either version 2 of the License, or
167 (at your option) any later version.
172 manpage:tigrc[5], git(7), gitk(1)