User guide / Git

Git keys

Development reference · View source

KeyAction
Space g gOpen the changed-file list
Space g dOpen the active file’s unstaged diff
Space g DCompare the active file’s complete Git versions side by side
Space g bList local and cached remote branches and check one out locally
Space g wOpen the repository worktree list
Space g lOpen paged commit history
Space g nOpen the cached commit network
Space g fFuzzy-search commits in a hash/title list with author, date, and full-message preview
Space g BOpen live-buffer attribution for the whole file
Space g tOpen the bounded stash list
Space g rRe-read branch, changed files, and changed lines from Git

Every Git view uses Tab for its actions; see Contextual actions . The :git-… commands are listed under Commands .

A typical commit:

  1. Space g g — open the changed-file list.
  2. Select rows, then Tab s — stage them.
  3. Tab c — write the message in the buffer that opens.
  4. :w — commit.
  5. Tab P — push.