mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-14 11:23:09 +02:00
8.8 KiB
8.8 KiB
This file is auto-generated. To update, make the changes in the pkg/i18n directory and then run go run scripts/cheatsheet/main.go generate
from the project root.
Lazygit Keybindings
Global Keybindings
ctrl+r: switch to a recent repo () pgup: scroll up main panel (fn+up) pgdown: scroll down main panel (fn+down) m: view merge/rebase options ctrl+p: view custom patch options P: push p: pull R: refresh x: open menu z: undo (via reflog) (experimental) ctrl+z: redo (via reflog) (experimental) +: next screen mode (normal/half/fullscreen) _: prev screen mode :: execute custom command ctrl+s: view filter-by-path options W: open diff menu ctrl+e: open diff menu @: open command log menu }: Increase the size of the context shown around changes in the diff view {: Decrease the size of the context shown around changes in the diff view
List Panel Navigation
.: next page ,: previous page <: scroll to top >: scroll to bottom /: start search ]: next tab [: previous tab
Branches Panel (Branches Tab)
space: checkout o: create pull request O: create pull request options ctrl+y: copy pull request URL to clipboard c: checkout by name F: force checkout n: new branch d: delete branch r: rebase checked-out branch onto this branch M: merge into currently checked out branch i: show git-flow options f: fast-forward this branch from its upstream g: view reset options R: rename branch ctrl+o: copy branch name to clipboard enter: view commits
Branches Panel (Remote Branches (in Remotes tab))
esc: Return to remotes list g: view reset options enter: view commits space: checkout n: new branch M: merge into currently checked out branch d: delete branch r: rebase checked-out branch onto this branch u: set as upstream of checked-out branch
Branches Panel (Remotes Tab)
f: fetch remote n: add new remote d: remove remote e: edit remote
Branches Panel (Sub-commits)
enter: view commit's files space: checkout commit g: view reset options n: new branch c: copy commit (cherry-pick) C: copy commit range (cherry-pick) ctrl+r: reset cherry-picked (copied) commits selection ctrl+o: copy commit SHA to clipboard
Branches Panel (Tags Tab)
space: checkout d: delete tag P: push tag n: create tag g: view reset options enter: view commits
Commit Files Panel
ctrl+o: copy the committed file name to the clipboard c: checkout file d: discard this commit's changes to this file o: open file e: edit file space: toggle file included in patch enter: enter file to add selected lines to the patch (or toggle directory collapsed) `: toggle file tree view
Commits Panel (Commits)
ctrl+l: open log menu s: squash down r: reword commit R: reword commit with editor g: reset to this commit f: fixup commit F: create fixup commit for this commit S: squash all 'fixup!' commits above selected commit (autosquash) d: delete commit ctrl+j: move commit down one ctrl+k: move commit up one e: edit commit A: amend commit with staged changes p: pick commit (when mid-rebase) t: revert commit c: copy commit (cherry-pick) ctrl+o: copy commit SHA to clipboard C: copy commit range (cherry-pick) v: paste commits (cherry-pick) enter: view commit's files space: checkout commit n: create new branch off of commit T: tag commit ctrl+r: reset cherry-picked (copied) commits selection ctrl+y: copy commit message to clipboard o: open commit in browser b: view bisect options
Commits Panel (Reflog Tab)
enter: view commit's files space: checkout commit g: view reset options c: copy commit (cherry-pick) C: copy commit range (cherry-pick) ctrl+r: reset cherry-picked (copied) commits selection ctrl+o: copy commit SHA to clipboard
Extras Panel
@: open command log menu
Files Panel
ctrl+b: Filter commit files
Files Panel (Files)
c: commit changes w: commit changes without pre-commit hook A: amend last commit C: commit changes using git editor space: toggle staged d: view 'discard changes' options e: edit file o: open file i: add to .gitignore r: refresh files s: stash changes S: view stash options a: stage/unstage all D: view reset options enter: stage individual hunks/lines for file, or collapse/expand for directory f: fetch ctrl+o: copy the file name to the clipboard g: view upstream reset options `: toggle file tree view M: open external merge tool (git mergetool) ctrl+w: Toggle whether or not whitespace changes are shown in the diff view
Files Panel (Submodules)
ctrl+o: copy submodule name to clipboard enter: enter submodule d: view reset and remove submodule options u: update submodule n: add new submodule e: update submodule URL i: initialize submodule b: view bulk submodule options
Main Panel (Merging)
H: scroll left L: scroll right esc: return to files panel M: open external merge tool (git mergetool) space: pick hunk b: pick all hunks ◄: select previous conflict ►: select next conflict ▲: select previous hunk ▼: select next hunk z: undo
Main Panel (Normal)
Ő: scroll down (fn+up) ő: scroll up (fn+down)
Main Panel (Patch Building)
esc: exit line-by-line mode o: open file ▲: select previous line ▼: select next line ◄: select previous hunk ►: select next hunk ctrl+o: copy the selected text to the clipboard space: add/remove line(s) to patch v: toggle drag select V: toggle drag select a: toggle select hunk H: scroll left L: scroll right
Main Panel (Staging)
esc: return to files panel space: toggle line staged / unstaged d: delete change (git reset) tab: switch to other panel o: open file ▲: select previous line ▼: select next line ◄: select previous hunk ►: select next hunk ctrl+o: copy the selected text to the clipboard e: edit file o: open file v: toggle drag select V: toggle drag select a: toggle select hunk H: scroll left L: scroll right c: commit changes w: commit changes without pre-commit hook C: commit changes using git editor
Menu Panel
esc: close menu
Stash Panel
enter: view stash entry's files space: apply g: pop d: drop n: new branch
Status Panel
e: edit config file o: open config file u: check for update enter: switch to a recent repo a: show all branch logs