1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-30 04:17:58 +01:00
tldr/pages/common/tig.md
2018-09-06 23:09:06 +01:00

528 B

tig

A text-mode interface for Git.

  • 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}}

  • Display commits from all branches and stashes:

tig --all

  • Start in stash view, displaying all saved stashes:

tig stash