HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

tig — A configurable `ncurses`-based TUI for Git. See also: `gitui`, `git-gui`. More information: <https:/

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandtigtuiconfigurableclincursesbasedfor

Problem

How to use the tig command: A configurable ncurses-based TUI for Git. See also: gitui, git-gui. More information: <https://jonas.github.io/tig/doc/manual.html>.

Solution

tig — A configurable ncurses-based TUI for Git. See also: gitui, git-gui. More information: <https://jonas.github.io/tig/doc/manual.html>.

Show the sequence of commits starting from the current one in reverse chronological order:
tig


Show the history of a specific branch:
tig {{branch}}


Show the history of specific files or directories:
tig {{path1 path2 ...}}


Show the difference between two references (such as branches or tags):
tig {{base_ref}}..{{compared_ref}}


Browse git blame interactively (press <,> to jump to parent):
tig blame {{path/to/file}}


Display commits from all branches and stashes:
tig --all


Start in stash view, displaying all saved stashes:
tig stash


Display help in TUI:
<h>

Code Snippets

Show the sequence of commits starting from the current one in reverse chronological order

tig

Show the history of a specific branch

tig {{branch}}

Show the history of specific files or directories

tig {{path1 path2 ...}}

Show the difference between two references (such as branches or tags)

tig {{base_ref}}..{{compared_ref}}

Browse git blame interactively (press `<,>` to jump to parent)

tig blame {{path/to/file}}

Context

tldr-pages: common/tig

Revisions (0)

No revisions yet.