TIGRC(5) Tig Manual TIGRC(5) (NAME) tigrc - Tig (SYNOPSIS) set variable = value bind keymap key action color area fgcolor bgcolor [attributes] source path (DESCRIPTION) ~/.tigrc . . . (\) . (#) () . . . . :toggle . $XDG_CONFIG_HOME/tig/config . ~/.tigrc . (GIT CONFIGURATION) ~/.tigrc Tig (Git) Tig . git-config(1) . . [tig] show-changes = true [tig "color"] cursor = yellow red bold [tig "bind"] generic = P parent tig : color.* . git-colors . core.abbrev . id-width . core.editor . TIG_EDITOR GIT_EDITOR . core.worktree (working tree). gui.encoding . i18n.commitencoding . UTF-8 . SET (SET COMMAND) set . : set variables = value += . : set commit-order = topo # set git-colors = no # set horizontal-scroll = 33% # set blame-options = -C -C -C # set log-options += --minimal # diff # () <> set reference-format = (branch) # blame . set blame-view = \ date:default \ author:abbreviated \ committer:abbreviated \ file-name:auto \ id:yes,color \ line-number:yes,interval=5 text : [tig] line-graphics = no # tab-size = 8 # (bool) (int) (string) (mixed) . true "1" "true" "yes" . false . . . ' " . . . (Variables) : diff-options (string) diff diff. git-show(1) --patch-with-stat . --format . TIG_DIFF_OPTS ( tig(1)) diff . blame-options (string) blame. git-blame(1) . Tig blame blame . log-options (string) git-log(1) log . . `pretty.format' log . main-options (string) git-log(1) main . . reference-format (string) (refs). [tag] . local-tag tag . tracked-remote remote branch . hide: hide:remote. : o head : HEAD. o tag : (annotated tag). o local-tag : (lightweight tag). o remote : (). o tracked-remote : HEAD . o replace : (replaced reference). o branch : (branch). o stash : (stash). o note : (Notes). o prefetch : git maintenance. o other : . line-graphics (mixed) [ascii|default|utf-8|auto|] . "auto" UTF-8 "utf-8" "default". truncation-delimiter (mixed) [utf-8|] . "~" . "utf-8" "..." (" ") . horizontal-scroll (mixed) . 5 33% 100% . . 50% . git-colors (list) "key=value" Tig "branch.current=main-head" "grep.filename=grep.file". "no" . show-notes (mixed) [|] . git show --notes= . . show-changes (bool) (staged) (unstaged) (main) . show-untracked (bool) (untracked) . vertical-split (mixed) [auto|] . "auto" ( ) . true false . split-view-height (mixed) . 5 80% 100% . . 67% . split-view-width (mixed) . 5 80% 100% . . 50% . status-show-untracked-dirs (bool) ( git ls-files --directory). . status-show-untracked-files (bool) ( status.showUntrackedFiles ). . tab-size (int) (tab). . diff-context (int) diff . word-diff (bool) diff (word diff). . . diff-highlight (mixed) diff diff-highlight . false . true diff-highlight . color diff-add-highlight color diff-del-highlight . diff-indicator (bool) +/- diff. . ignore-space (mixed) [no|all|some|at-eol|] diff. . "all" "some" "at-eol" "--ignore-all-space" "--ignore-space" "--ignore-space-at-eol" git diff git show . : ignore-space some all at-eol status-update status-revert . stage-update-line . commit-order (enum) [auto|default|topo|date|author-date|reverse] ( ) . "auto" ( ) . "default" . ignore-case (enum) [no|yes|smart-case] . "smart-case" . . mailmap (bool) .mailmap. . git-shortlog(1) . wrap-lines (bool) ( ). . . wrap-search (bool) / . . focus-child (bool) . . true . send-child-enter (bool) "enter" . "enter" . set focus-child = no. true . editor-line-number (bool) . + . : vim +10 tig.c history-size (int) ~/.tig_history readline. 500 . 0 . mouse (bool) . . Shift ( Option ) . ncurses . mouse-scroll (int) . . ncurses ~/.tigrc set mouse = true . mouse-wheel-cursor (bool) . . set mouse-scroll = 1 . ncurses ~/.tigrc set mouse = true . pager-autoscroll (bool) (pager) . . recurse-tree (bool) . pgrp (bool) tig (process-group leader) . . Zsh zsh-workers/43379 . xclip setsid tig . git-credential-cache credentialCache.ignoreSIGHUP . start-on-head (bool) HEAD. refresh-mode (mixed) [manual|auto|after-command|periodic|] . manual . auto . after-command . periodic refresh-interval . refresh-interval (int) refresh-mode periodic . file-args (args) . git-rev-parse(1) . rev-args (args) (revisions) . git-rev-parse(1) . (View settings) . . (:) . author () : author:email,width=20. display . display yes . display . display file-name auto . tigrc . main-view-date (main) . : # blame set blame-view = date:default author:full committer:no file-name:auto \ id:yes,color line-number:yes,interval=5 text # grep `git grep` set grep-view = file-name:yes line-number:yes,interval=1 text # set tree-view = line-number:no,interval=5 mode author:full committer:no \ file-size:units date:default id:no file-name # set pager-view = line-number:yes,interval=10 text # set main-view-date = custom set main-view-date-format = "%Y-%m-%d %H:%M" set blame-view-line-number = no # . set commit-order = default : blob-view, diff-view, log-view, pager-view, stage-view line-number, text blame-view author, committer, date, file-name, id, line-number, text grep-view file-name, line-number, text main-view, reflog-view author, committer, date, commit-title, id, line-number, ref refs-view author, committer, date, commit-title, id, line-number, ref stash-view author, date, commit-title, id, line-number status-view file-name, line-number, status tree-view author, committer, date, id, file-name, file-size, line-number, mode : author, committer o display (mixed) [full|abbreviated|email|email-user|]: /. "abbreviated" / . o width (int): . / . . o maxwidth (int): . . 15 20% 100% . commit-title o graph (mixed) [no|v2|v1]: . "v1" . line-graphics . o refs (bool): ( ) . . o overflow (bool or int): . . . date o display (mixed) [relative|relative-compact|custom|default|]: . "relative" "relative-compact" "2 minutes ago" "2m". "custom" strftime(3) "format" . o use-author (bool): . o local (bool): true localtime(3) . . o format (string): strftime(3) custom . o width (int): . . file-name o display (mixed) [auto|always|]: . "auto" : tig blame -C . o width (int): . . o maxwidth (int): . . 15 20% 100% . file-size o display (mixed) [default|units|]: . "units" 12524 "12.2K" . o width (int): . . id o display (bool): . o width (int) : . Tig core.abbrev . core.abbrev git-config(1) . reflog ( ref/stash@{4}) . line-number o display (bool): . o interval (int): . o width (int): . . mode o display (bool): (/) . o width (int): . . ref o display (bool): . o width (int): . . o maxwidth (int): . . 15 20% 100% . status o display (mixed) [no|short|long|]: . text o commit-title-overflow (bool or int): diff . . . . display . :toggle author-display display author . . :toggle commit-title-graph graph commit-title . . BIND (BIND COMMAND) bind . : bind keymap key action : # diff stage bind stage :/^@@ # git-gc bind generic G none # bind status + !git commit --amend # ~/.tigrc bind generic S :source ~/.tigrc # UTF8 . bind generic o @sh -c "printf '%s' %(commit) | pbcopy" : [tig "bind"] # generic = Q none # main = C !git cherry-pick %(commit) generic . generic . (unbind) bind generic key none . readline ~/.inputrc . readline(1) . Tig $if tig ~/.inputrc . (Keymaps) : main, diff, log, reflog, help, pager, status, stage, tree, blob, blame, refs, stash, grep generic. generic ( ). search . (Key values) . UTF8 . "<" ">" . # . < . , , , , or , , , , , or , or , , or , , , or , or , or , or , or , , , or , , , , , ... Ctrl . Escape key . : bind main R refresh bind main next bind main scroll-page-down bind main o options bind main parent (Notes) o Tig ncurses . ncurses(3x) terminfo(5) ( termcap) . o Ctrl-m Ctrl-i Enter Tab . o Ctrl-f Ctrl-F . o Ctrl- Ctrl-@ . o . o Ctrl-z Tig ( fg Tig ). (Actions) ( ) . (External user-defined command) . ! . @ . + . ? . < Tig . > Tig . ( ! ). "? Tig . (redirection) sh -c '' . (Browsing state variables) Tig : %(head) head . HEAD . %(commit) . %(blob) blob . %(branch) . %(remote) (remote) . %(branch) . %(tag) . %(refname) . %(stash) stash . %(directory) "." . %(file) . %(file_old) . %(lineno) . 0 . %(lineno_old) diff. 0 . %(status) . %(ref) blame HEAD . %(revargs) (revision) . %(fileargs) . %(cmdlineargs) . %(diffargs) diff-options TIG_DIFF_OPTS diff stage. %(blameargs) blame-options blame. %(logargs) log-options log. %(mainargs) main-options main. %(prompt) . "%(prompt Enter branch name: )" . %(text) . %(repo:head) (checked out) master %(repo:head-id) . %(repo:remote) origin. %(repo:upstream) (upstream) origin/master. %(repo:cdup) ../ %(repo:prefix) subdir/. %(repo:git-dir) /src/repo/.git. %(repo:worktree) (worktree) . %(repo:is-inside-work-tree) Tig (true false). : # # 'S' . bind main S !git format-patch -1 %(commit) # bind main B ?git checkout -b "%(prompt Enter new branch name: )" # bind main U +sh -c 'git --0-pager shortlog -s --uthor="$(git show -s --rmat=%aE %(commit))" (Advanced shell-like commands) : . . bind generic I @sh -c "echo -n %(commit) | xclip -selection c" Tig. .gitconfig .git/config : . Tig . [alias] gitk-bg = !"gitk HEAD --0t $(git rev-parse --emotes) &" publish = !"for i in origin public; do git push $i; done" [tig "bind"] generic = V @git gitk-bg generic = > !git publish (Internal user-defined commands) : Tig . ( ) (pager view) . : # ~/.tigrc 'S' bind generic S :source .tigrc # diff bind diff F :set diff-options = --ll-diff # git-reflog(1) bind generic W :!git reflog # (chunk) diff diff bind stage 2 :?^@@ bind stage D :/^diff --(git|cc) bind main I :toggle id # / (ID) bind diff D :toggle diff-options --nimal # diff bind diff [ :toggle diff-context -3 # ( -U) bind diff ] :toggle diff-context +3 # bind generic V :toggle split-view-height -10% # . (Action names) . - _ . "view-main" "View.Main" "VIEW_MAIN" . (View switching) view-main (main view) view-diff diff view-log (log view) view-reflog reflog view-tree (tree view) view-blob blob view-blame blame view-refs (refs view) view-status (status view) view-stage (stage view) view-stash stash view-grep grep view-pager (pager view) view-help (help view) (View manipulation) enter back next previous parent view-next refresh maximize view-close view-close-no-quit quit (View-specific actions) status-update / (chunk) status-revert (chunk) status-merge stage-update-line / stage-update-part / stage-split-chunk diff (Cursor navigation) move-up move-down move-page-up move-page-down move-half-page-up move-half-page-down move-first-line move-last-line move-next-merge move-prev-merge (Scrolling) scroll-line-up scroll-line-down scroll-page-up scroll-page-down scroll-half-page-up scroll-half-page-down scroll-first-col scroll-left scroll-right (Searching) search search-back find-next find-prev (Misc) edit prompt options screen-redraw stop-loading show-version none (COLOR COMMAND) . NO_COLOR . . : color area fgcolor bgcolor [attributes] : # . color default white black # Diff color diff-header yellow default color diff-index blue default color diff-chunk magenta default color "Reported-by:" green default # color tree.date black cyan bold # color "/(note|warning|error):/" yellow default bold : [tig "color"] # cursor = red default underline # title-blur = white blue title-focus = white blue bold # [tig "color.tree"] date = cyan default bold (Area names) . . "/.../" . . - _ "Diff-Header" "DIFF_HEADER" . "stage.diff-chunk" "diff.diff-chunk". (Color names) : white black green magenta blue cyan yellow red default. default . color0 color1 ... colorN-1 ( N ). . color . 0 1 ... N-1 . (Attribute names) : normal blink bold dim reverse standout underline. . (UI colors) default . . (General) default ( ). cursor . cursor-blur . status . title-focus . title-blur . search-result . delimiter . header . status.header . help.header . line-number . id . date . author . committer . mode . overflow . directory . file . file-size . . (Main view colors) graph-commit . palette-[0-13] . . : palette-0 = red main-commit . main-annotated . main-head . main-remote . main-tracked . main-tag . main-local-tag . main-ref . main-replace . main-stash stash. main-note (notes). main-prefetch git maintenance. main-other . . (Status view) stat-none . stat-staged . stat-unstaged . stat-untracked . . (Help view) help-group . help-action . (Highlighting) Diff (Diff markup) diff . diff-header, diff-chunk, diff-stat, diff-add, diff-add2, diff-del, diff-del2, diff-add-highlight, diff-del-highlight Diff (Enhanced Git diff markup) diff diff . diff-oldmode, diff-newmode, diff-copy-from, diff-copy-to, diff-similarity, diff-index (Pretty print commit headers) --retty=raw . . pp-refs, pp-reflog, pp-reflogmsg, pp-merge (Raw commit header) --retty=raw commit . commit, parent, tree, author, committer (Commit message) ( Signed-off-by) . . (Tree markup) . tree-dir, tree-file SOURCE (SOURCE COMMAND) source . source . . tig . -q . : source [-q] path : source ~/.tig/colorscheme.tigrc source ~/.tig/keybindings.tigrc (COPYRIGHT) Copyright (c) 2006-2026 Jonas Fonseca (GNU General Public License) ( ) / . (SEE ALSO) tig(1), tigmanual(7), git(7), git-config(1) (NOTES) 1. jonas.fonseca@gmail.com mailto:jonas.fonseca@gmail.com Tig 2.6.1 2026-06-13 TIGRC(5)