Community sheets

lazygit keyboard shortcuts on macOS

A community-written cheat sheet for lazygit, which has no macOS menu bar for Keysi to read. Once imported, hold ⌘ while it is in the foreground and these shortcuts appear.

53 shortcuts · free, and not part of Keysi Pro · public domain (CC0).

Everywhere

ActionKeys
Show every keybinding for this panel?
PushP
Pullp
RefreshR
Undo (via the reflog)z
RedoZ
Cycle the screen mode (normal, half, full)+
Execute a shell command:
View merge/rebase optionsm
Switch to a recent repoCtrl-r
Scroll the main window upK
Scroll the main window downJ
Toggle whitespace in the diffCtrl-w
Quitq

Files

ActionKeys
Stage or unstage the fileSpace
Stage all filesa
Stage individual lines or hunksEnter
Commitc
Commit without the pre-commit hookw
Commit using your git editorC
Amend the last commitA
Discard changesd
Edit the filee
Ignore or exclude the filei
Stash changess
Fetchf
Toggle the file tree view`

Branches

ActionKeys
Check out the branchSpace
Check out by namec
Check out the previous branch-
New branchn
Delete the branchd
Rebase the checked-out branch onto this oner
Merge into the checked-out branchM
Fast-forward the branchf
Rename the branchR
Create a pull requesto

Commits

ActionKeys
View the commit's filesEnter
Squash into the commit belows
Fixup into the commit belowf
Rewordr
Dropd
Edit (start an interactive rebase)e
Pickp
Move the commit downCtrl-j
Move the commit upCtrl-k
Amend the commit with staged changesA
Revertt
Tag the commitT
Copy (cherry-pick)C
Paste (cherry-pick)V
Create a new branch from the commitn
Check out the commitSpace

Use this sheet

  1. Download lazygit below: a small JSON file.
  2. In Keysi, open Settings ▸ Sheets ▸ Import Sheet… and choose the file, or drop it onto the Sheets list.
  3. Keysi shows the sheet's name, the app it applies to and its shortcut count. Confirm, and it is saved to your Sheets folder.

Nothing is installed from this page: it only gives you a file, and Keysi asks before it saves it. If you already have a sheet with the same identifier, Keysi offers to replace it or keep both.

Matches the program in a terminal's foreground: lazygit. Keysi checks the terminal's foreground job, so the sheet appears while you're actually in it.

Shortcuts taken from the tool's documentation: github.com. Check them against your own configuration, since a tool you have remapped is no longer on its defaults.

Download the lazygit sheet (JSON) Get Keysi — free

More community sheets