Skip to content

Instantly share code, notes, and snippets.

@maks
Last active March 14, 2019 23:01
Show Gist options
  • Select an option

  • Save maks/71762736d40c3f0376d1e81dffe60d8a to your computer and use it in GitHub Desktop.

Select an option

Save maks/71762736d40c3f0376d1e81dffe60d8a to your computer and use it in GitHub Desktop.
Tig Stuff

Tig CheatSheet

  • tig
  • tig status Status
  • tig blame FILE Blame
  • tig master Show a branch
  • tig test..master Show difference between two branches
  • tig FILE Show history of file
  • tig v0.0.3:README Show contents of file in a specific revision

Switching views

m	Main view
s	Status
t	Tree (files)
y	Stash view
g	Grep
h	Help

All views

j k	Up/down
J K	Next/previous
<	Back
R	Refresh
q	Close
Q	Close all
^N	Next on parent view
^P	Previous on parent view

h - Branch view

i	Change sort header

m - Main view

D	Toggle date display modes
A	Toggle author display modes
X	Toggle commit sha
C	Cherry pick a commit

s - Stage view

u	Stage/unstage file or chunk
!	Revert file or chunk
C	Commit
M	Merge
1	Stage line
[ ]	Increase/decrease the diff context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment