13 $ brew install tig --HEAD
18 $ sudo apt install tig
23 | Command | Description |
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 |
35 You can substitute `git log` → `tig`.
44 | `t` | Tree (files) |
52 | Shortcut | Description |
55 | `J` `K` | Next/previous |
62 | `^N` | Next on parent view |
63 | `^P` | Previous on parent view |
68 | `D` | Toggle date display modes |
69 | `A` | Toggle author display modes |
70 | `X` | Toggle commit sha |
71 | `C` | Cherry pick a commit |
76 | `u` | Stage/unstage file or chunk |
77 | `!` | Revert file or chunk |
81 | `[` `]` | Increase/decrease the diff context |
86 | `i` | Change sort header |
91 | `,` | Parent commit |