Lazygit keyboard shortcuts cheat sheet

Printable cheat sheet covering all 236 Lazygit 2025 keyboard shortcuts and hotkeys, organized by category. Export as PDF or print directly.

All shortcuts

  • P — Push
  • P — Pull
  • M — View merge/rebase options
  • R — Refresh
  • Backslash — ``
  • Escape — Cancel
  • W — View diffing options
  • Q — Quit
  • Z — Undo
  • Z — Redo
  • Comma — Previous page
  • Period — Next page
  • V — Toggle range select
  • Slash — Search the current view by text
  • H — Scroll left
  • L — Scroll right
  • BracketRight — Next tab
  • BracketLeft — Previous tab
  • Y — Copy to clipboard
  • C — Checkout
  • D — Discard
  • O — Open file
  • E — Edit
  • Space — Toggle file included in patch
  • A — Toggle all files
  • Enter — Enter file / Toggle directory collapsed
  • Minus — Collapse all files
  • Equal — Expand all files
  • 0 — Focus main view
  • Slash — Filter the current view by text
  • Enter — Confirm
  • Escape — Close
  • B — View bisect options
  • S — Squash
  • F — Fixup
  • C — Set fixup message
  • R — Reword
  • R — Reword with editor
  • D — Drop
  • E — Edit (start interactive rebase)
  • I — Start interactive rebase
  • P — Pick
  • F — Create fixup commit
  • S — Apply fixup commits
  • V — Paste (cherry-pick)
  • B — Mark as base commit for rebase
  • A — Amend
  • A — Amend commit attribute
  • T — Revert
  • T — Tag commit
  • Space — Checkout
  • Y — Copy commit attribute to clipboard
  • O — Open commit in browser
  • N — Create new branch off of commit
  • N — Move commits to new branch
  • G — Reset
  • C — Copy (cherry-pick)
  • 0 — Focus main view
  • Enter — View files
  • W — View worktree options
  • Slash — Search the current view by text
  • Enter — Confirm
  • Escape — Close/Cancel
  • Space — Stage
  • Y — Copy to clipboard
  • C — Commit
  • W — Commit changes without pre-commit hook
  • A — Amend last commit
  • C — Commit changes using git editor
  • E — Edit
  • O — Open file
  • I — Ignore or exclude file
  • R — Refresh files
  • S — Stash
  • S — View stash options
  • A — Stage all
  • Enter — Stage lines / Collapse directory
  • D — Discard
  • G — View upstream reset options
  • D — Reset
  • M — View merge conflict options
  • F — Fetch
  • Minus — Collapse all files
  • Equal — Expand all files
  • 0 — Focus main view
  • Slash — Filter the current view by text
  • Enter — Confirm
  • Escape — Close/Cancel
  • I — Show git-flow options
  • Space — Checkout
  • N — New branch
  • N — Move commits to new branch
  • O — Create pull request
  • O — View create pull request options
  • C — Checkout by name
  • Minus — Checkout previous branch
  • F — Force checkout
  • D — Delete
  • R — Rebase
  • M — Merge
  • F — Fast-forward
  • T — New tag
  • S — Sort order
  • G — Reset
  • R — Rename branch
  • U — View upstream options
  • 0 — Focus main view
  • Enter — View commits
  • W — View worktree options
  • Slash — Filter the current view by text
  • Space — Pick hunk
  • B — Pick all hunks
  • ArrowUp — Previous hunk
  • ArrowDown — Next hunk
  • ArrowLeft — Previous conflict
  • ArrowRight — Next conflict
  • Z — Undo
  • E — Edit file
  • O — Open file
  • M — View merge conflict options
  • Escape — Return to files panel
  • ArrowDown — Scroll down
  • ArrowUp — Scroll up
  • Tab — Switch view
  • Escape — Exit back to side panel
  • Slash — Search the current view by text
  • ArrowLeft — Go to previous hunk
  • ArrowRight — Go to next hunk
  • V — Toggle range select
  • A — Toggle hunk selection
  • O — Open file
  • E — Edit file
  • Space — Toggle lines in patch
  • D — Remove lines from commit
  • Escape — Exit custom patch builder
  • Slash — Search the current view by text
  • ArrowLeft — Go to previous hunk
  • ArrowRight — Go to next hunk
  • V — Toggle range select
  • A — Toggle hunk selection
  • Space — Stage
  • D — Discard
  • O — Open file
  • E — Edit file
  • Escape — Return to files panel
  • Tab — Switch view
  • E — Edit hunk
  • C — Commit
  • W — Commit changes without pre-commit hook
  • C — Commit changes using git editor
  • Slash — Search the current view by text
  • Enter — Execute
  • Escape — Close/Cancel
  • Slash — Filter the current view by text
  • Space — Checkout
  • Y — Copy commit attribute to clipboard
  • O — Open commit in browser
  • N — Create new branch off of commit
  • N — Move commits to new branch
  • G — Reset
  • C — Copy (cherry-pick)
  • 0 — Focus main view
  • Enter — View commits
  • W — View worktree options
  • Slash — Filter the current view by text
  • Space — Checkout
  • N — New branch
  • M — Merge
  • R — Rebase
  • D — Delete
  • U — Set as upstream
  • S — Sort order
  • G — Reset
  • 0 — Focus main view
  • Enter — View commits
  • W — View worktree options
  • Slash — Filter the current view by text
  • Enter — View branches
  • N — New remote
  • D — Remove
  • E — Edit
  • F — Fetch
  • F — Add fork remote
  • Slash — Filter the current view by text
  • Tab — Switch view
  • Escape — Exit back to side panel
  • Slash — Search the current view by text
  • Space — Apply
  • G — Pop
  • D — Drop
  • N — New branch
  • R — Rename stash
  • 0 — Focus main view
  • Enter — View files
  • W — View worktree options
  • Slash — Filter the current view by text
  • O — Open config file
  • E — Edit config file
  • U — Check for update
  • Enter — Switch to a recent repo

Other Code & Text apps

  • Alacritty shortcuts
  • Android Studio shortcuts
  • Arduino IDE shortcuts
  • Bitbucket shortcuts
  • Chrome Developer Tools shortcuts
  • CLion shortcuts
  • Code Editor for iOS shortcuts
  • Cursor shortcuts
  • DataGrip shortcuts
  • Docker Desktop shortcuts

Related pages

  • Lazygit shortcuts
  • Lazygit cheat sheet
  • Learn Lazygit shortcuts
  • All Code & Text apps