13 $ brew install tig --HEAD
18 $ sudo apt install tig
23 | Command | Description |
24 | ------------------- | -------------------------------------------- |
27 | `tig status` | Status |
28 | `tig blame FILE` | Blame |
30 | `tig master` | Show a branch |
31 | `tig test..master` | Show difference between two branches |
32 | `tig FILE` | Show history of file |
33 | `tig v0.0.3:README` | Show contents of file in a specific revision |
34 | `tig -C /repo/path` | Run in dir `/repo/path` (like `git -C`) |
36 You can substitute `git log` → `tig`.
45 | `t` | Tree (files) |
53 | Shortcut | Description |
56 | `J` `K` | Next/previous |
63 | `^N` | Next on parent view |
64 | `^P` | Previous on parent view |
69 | `D` | Toggle date display modes |
70 | `A` | Toggle author display modes |
71 | `X` | Toggle commit sha |
72 | `C` | Cherry pick a commit |
77 | `u` | Stage/unstage file or chunk |
78 | `!` | Revert file or chunk |
82 | `[` `]` | Increase/decrease the diff context |
87 | `i` | Change sort header |
92 | `,` | Parent commit |