tig Text-mode git browser
Light · Postcard
102 × 152 mm · PDF
Dark · Postcard
102 × 152 mm · PDF
Ink saver · Postcard
102 × 152 mm · PDF
Light · A4 landscape
297 × 210 mm · PDF
Dark · A4 landscape
297 × 210 mm · PDF
Ink saver · A4 landscape
297 × 210 mm · PDF
Light · A3 landscape
420 × 297 mm · PDF
Dark · A3 landscape
420 × 297 mm · PDF
Ink saver · A3 landscape
420 × 297 mm · PDF
Start here
tigConcepts
- main commit list
- diff split below
- back to list or l to maximize
Views
Navigation
Search and prompt
:80:2f12bcc:goto <rev>
:!git log -p:save-display <file>
:script <file>
:exec <flags><args>
:echo <text>
Staging
Display toggles
Command line
tigtig <file>
tig blame <file>
tig statustig show <rev>
tig refstig stashtig --alltig <a>..<b>
tig origin..HEAD
tig --since=1.month -- <path>
tig -n20tig -- statusgit show | tigConfig and bindings
| Variable | Value |
|---|---|
%(commit) |
selected commit id |
%(file) |
selected file |
%(branch) |
selected branch |
%(head) |
viewed head, default HEAD |
%(prompt) |
ask for a value |
| Path | Use |
|---|---|
~/.tigrc |
user config |
~/.config/tig/config |
XDG user config |
TIGRC_USER |
override user path |
TIG_DIFF_OPTS |
default diff options |
Recipes
bind generic + !git commit --amend
bind generic 9 @sh -c "echo -n %(commit) | xclip -selection c"
tig origin..HEAD# Enter on a commit to read the diff# q to leave
tig status# select the file, Enter for the stage view# ] widen context, 1 stage a line, u a chunk# C to commit



