mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-14 11:23:09 +02:00
3.8 KiB
3.8 KiB
Lazygit menu
Global
m: view merge/rebase options ctrl+p: view custom patch options P: push p: pull R: refres +: next screen mode (normal/half/fullscreen) _: prev screen mode :: execute custom command
Status
e: edit config file o: open config file u: check for update enter: switch to a recent repo
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 canges S: view stash options a: stage/unstage all D: view reset options enter: stage individual hunks/lines f: fetch X: execute custom command
Branches
space: checkout o: create pull request c: checkout by name F: force checkout n: new branch d: delete branch r: rebase 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
Commits
s: squash down r: reword commit R: rename commit with editor g: reset to this commit f: fixup commit F: create fixup commit for this commit S: squash above commits 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) C: copy commit range (cherry-pick) v: paste commits (cherry-pick) enter: view commit's files space: select commit to diff with another commit i: select commit to diff with another commit T: tag commit
Stash
space: apply g: pop d: drop
Commit files
esc: go back c: checkout file d: discard this commit's changes to this file o: open file space: toggle file included in patch enter: enter file to add selected lines to the patch
Main (Normal)
PgDn: scroll down (fn+up) PgUp: scroll up (fn+down)
Main (Staging)
esc: return to files panel space: stage selection d: reset selection tab: switch to other panel ▲: select previous line ▼: select next line ◄: select previous hunk ►: select next hunk space: stage line e: edit file o: open file v: toggle drag select V: toggle drag select a: toggle select hunk c: commit chages W: commit changes without pre-commit hook C: commit changes using git editor
Main (Merging)
esc: return to files panel space: pick hunk b: pick both hunks ◄: select previous conflict ►: select next conflict ▲: select top hunk ▼: select bottom hunk z: undo