1
0
mirror of https://github.com/onkelbeh/cheatsheets.git synced 2025-10-17 16:07:49 +02:00
cheatsheets/tig.md
Rico Sta. Cruz 85cc0fe827 Hello.
2012-03-16 14:15:50 +08:00

659 B

Tig shortcuts

Invocation

tig blame FILE
tig master        # Show a branch
tig test..master  # Show difference between two bracnhes
tig FILE          # Show history of file
tig v0.0.3:README # Show contents of file in a specific revision

All views

  • ^N - Next on parent view
  • ^P - Previous on parent view

m - Main view

  • D - Toggle between date display modes
  • A - Toggle between author display modes
  • C - Cherry pick a commit

S - Stage view

  • u - Stage/unstage file or chunk
  • ! - Revert file or chunk
  • C - Commit
  • M - Merge

H - Branch view

  • i - Change sort header