Tig - cheat sheet
Tig is a user-friendly text-mode interface for git
based on ncurses.
Navigation shortcuts
Enter
- open a detail viewk
/j
- move up / down on the listhome
/end
- jump to top / bottom on the list (fn ->
/fn <-
on MacOS)ctrl+n
/ctrl+p
- move next / prev on the parent view (navigates to next / prev commit on the history with open commit)D
- toggle date formatsX
- toggle displaying commit shat
- show tree files associated with selected commitR
- refresh current viewq
- close current viewQ
- clos all views/
/?
- search forward / backwardn
/N
- find next / prev occurenceh
- show help
Subcommands and options
tig path/to/file
- browse commits history for specific filetig --after="YYYY-MM-DD" --before="YYYY-MM-DD"
- browse commits history within date rangetig --after="YYYY-MM-DD" --before="YYYY-MM-DD" -- path/to/file
- browse commits history within date range for specific filetig --grep=pattern
- grep commit messages for specific patterntig blame path/to/file
- blame specific filetig grep pattern
- grep tracked files for specific patterntig log
- show commits logtig log path/to/file
- show commits log for specific filetig refs
- browse refs (tags or branches)tig stash
- browse stashtig status
- show status