====================== Tig keyboard shortcuts ====================== First published at 2/23/2023 on https://defkey.com/tig-git-shortcuts Tig is a text-mode interface for git. It functions mainly as a Git repository browser, but can also assist in staging changes for commit at chunk level. Tig has 51 shortcuts and we have listed all of them below. Switching views --------------- M Main view D Diff T Tree (files) B Blame S Status C Stage Y Stash G Grep H Help Diff view --------- [ Increase the diff context ] Decrease the diff context Status view ----------- U Stage/unstage file or chunk ! Revert file or chunk Shift + C Commit M Merge with external tool All views --------- Enter Enter and open selected line < Back to previous view state Tab Move focus to next view Shift + R Refresh Q Close view Shift + Q Close all (quit) , Parent commit Option toggles -------------- Shift + I Toggle sort order modes I Change sort header Shift + D Toggle date display modes Shift + A Toggle author display modes # Toggle line numbers ~ Toggle line graphics Shift + F Toggle file names Shift + W Toggle ignore space Stash view ---------- Shift + A Apply selected stash Shift + P Pop selected stash ! Drop selected stash Cursor navigation ----------------- / Search ? Search backwards J Up K Down Shift + J Next Shift + K Previous Space Page down - Page up Ctrl + D Half page down Ctrl + U Half page up Stage view ---------- U Stage/unstage file or chunk ! Revert file or chunk 1 Stage line \ Split current diff hunk [ Increase/decrease the diff context ] Increase/decrease the diff context Main view --------- Shift + X Toggle commit sha Shift + C Cherry pick commit Last modified on (UTC): Thursday, February 23, 2023 Defkey © All rights reserved.