6 tig - text-mode interface for git
11 tig [options] [revisions] [--] [paths]
12 tig log [options] [revisions] [--] [paths]
13 tig show [options] [revisions] [--] [paths]
14 tig blame [options] [rev] [--] path
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 diff view using the given git-show(1) options.
45 Show given file annotated by commits.
46 Takes zero or more git-blame(1) options.
47 Optionally limited from given revision.
50 Start up in status view.
53 Start up in log view, displaying git-log(1) output.
56 Show the first view with line <number> visible and selected.
59 Show version and exit.
62 Show help message and exit.
67 Display the current branch:
68 -----------------------------------------------------------------------------
70 -----------------------------------------------------------------------------
72 Display one or more specific branches:
73 -----------------------------------------------------------------------------
75 -----------------------------------------------------------------------------
78 -----------------------------------------------------------------------------
80 -----------------------------------------------------------------------------
82 Display differences between two branches:
83 -----------------------------------------------------------------------------
85 -----------------------------------------------------------------------------
87 Display changes for a single file:
88 -----------------------------------------------------------------------------
90 -----------------------------------------------------------------------------
92 Display contents of the README file in a specific revision:
93 -----------------------------------------------------------------------------
94 $ tig show tig-0.8:README
95 -----------------------------------------------------------------------------
97 Display revisions between two dates for a specific file:
98 -----------------------------------------------------------------------------
99 $ tig --after="2004-01-01" --before="2006-05-16" -- README
100 -----------------------------------------------------------------------------
102 Blame file with copy detection enabled:
103 -----------------------------------------------------------------------------
104 $ tig blame -C README
105 -----------------------------------------------------------------------------
107 Display the list of stashes:
108 -----------------------------------------------------------------------------
110 -----------------------------------------------------------------------------
112 ENVIRONMENT VARIABLES
113 ---------------------
115 In addition to environment variables used by git (e.g. GIT_DIR), tig defines
116 the ones below. The command related environment variables have access to the
117 internal state of tig via replacement variables, such as `%(commit)` and
118 `%(blob)`. See manpage:tigrc[5] for a full list.
121 Path of the user configuration file (defaults to `~/.tigrc`).
124 Path of the system wide configuration file (defaults to
125 `{sysconfdir}/tigrc`).
128 Set command for retrieving all repository references. The command
129 should output data in the same format as git-ls-remote(1).
132 The diff options to use in the diff view. The diff view uses
133 git-show(1) for formatting and always passes --patch-with-stat. You
134 may also set the diff-options setting in your manpage:tigrc[5].
137 Path for trace file where information about git commands are logged.
142 User configuration file. See manpage:tigrc[5] for examples.
144 '{sysconfdir}/tigrc'::
145 System wide configuration file.
149 '{sysconfdir}/etc/gitconfig::
150 Git configuration files. Read on start-up with the help of
157 Copyright (c) 2006-2012 Jonas Fonseca <fonseca@diku.dk>
159 This program is free software; you can redistribute it and/or modify
160 it under the terms of the GNU General Public License as published by
161 the Free Software Foundation; either version 2 of the License, or
162 (at your option) any later version.
167 manpage:tigrc[5], manpage:tigmanual[7], git(7), gitk(1)