6 tig - text-mode interface for git
11 tig [options] [revisions] [--] [paths]
12 tig show [options] [revisions] [--] [paths]
16 tig < [git command output]
20 Browse changes in a git repository. Additionally, tig(1) can also act
21 as a pager for output of various git commands.
23 When browsing repositories, tig(1) uses the underlying git commands
24 to present the user with various views, such as summarized commit log
25 and showing the commit with the log message, diffstat, and the diff.
27 Using tig(1) as a pager, it will display input from stdin and try
33 Command line options recognized by tig include all valid git-log(1) and
34 git-diff(1) options, as well as the following subcommands and tig specific
35 options. The first command line parameter not starting with "-" is interpreted
36 as being either a revision specification or a path and will end the option
37 parsing. All following options will be passed untouched to the underlying git
41 Open diff view using the given git show options.
44 Show given file annotated or blamed by commits.
45 Optionally limited from given revision.
48 Start up in branch view.
51 Start up in status view.
54 Show version and exit.
57 Show help message and exit.
62 Display the current branch:
63 -----------------------------------------------------------------------------
65 -----------------------------------------------------------------------------
67 Display one or more specific branches:
68 -----------------------------------------------------------------------------
70 -----------------------------------------------------------------------------
73 -----------------------------------------------------------------------------
75 -----------------------------------------------------------------------------
77 Display differences between two branches:
78 -----------------------------------------------------------------------------
80 -----------------------------------------------------------------------------
82 Display changes for a single file:
83 -----------------------------------------------------------------------------
85 -----------------------------------------------------------------------------
87 Display contents of the README file in a specific revision:
88 -----------------------------------------------------------------------------
89 $ tig show tig-0.8:README
90 -----------------------------------------------------------------------------
92 Display revisions between two dates for a specific file:
93 -----------------------------------------------------------------------------
94 $ tig --after="2004-01-01" --before="2006-05-16" -- README
95 -----------------------------------------------------------------------------
100 In addition to environment variables used by git (e.g. GIT_DIR), tig defines
101 the ones below. The command related environment variables have access to the
102 internal state of tig via replacement variables, such as `%(commit)` and
103 `%(blob)`. See manpage:tigrc[5] for a full list.
106 Path of the user configuration file (defaults to `~/.tigrc`).
109 Path of the system wide configuration file (defaults to
110 `{sysconfdir}/tigrc`).
113 Set command for retrieving all repository references. The command
114 should output data in the same format as git-ls-remote(1).
117 The command used for the diff view. By default, git show is used
121 The command used for the log view. If you prefer to have both
122 author and committer shown in the log view be sure to pass
123 `--pretty=fuller` to git log.
126 The command used for the main view. Note, you must always specify
127 the option: `--pretty=raw` since the main view parser expects to
133 The command used for the tree view. By default, git-ls-tree(1) is
137 The command used for the blob view. By default, git-cat-file(1) is
143 User configuration file. See manpage:tigrc[5] for examples.
145 '{sysconfdir}/tigrc'::
146 System wide configuration file.
150 '{sysconfdir}/etc/gitconfig::
151 Git configuration files. Read on start-up with the help of
158 Copyright (c) 2006-2009 Jonas Fonseca <fonseca@diku.dk>
160 This program is free software; you can redistribute it and/or modify
161 it under the terms of the GNU General Public License as published by
162 the Free Software Foundation; either version 2 of the License, or
163 (at your option) any later version.
168 manpage:tigrc[5], git(7), gitk(1)