It functions mainly as a Git repository browser, but can also assist in staging changes for commit at chunk level and act as a pager for output from various Git commands.

Commit changes

In tig main view press these key sequences to stage & commit.

Lang: text
* files
s (status view) + u (toggle staging/reset) + C (open commit message editor)

# * hunks
s (status view) + j/k (up/down lines) + '?' (toggle staging/reset single hunk)
+ C (open commit message editor)

# * lines
s (status view) + j/k (up/down lines) + 1 (toggle staging/reset single line)
+ C (open commit message editor)

Repository local configuration

Lang: sh
# disable commit title overflow highlight in main view
git config --local tig.main-view-commit-title "overflow=no"