1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-02-07 13:42:01 +02:00
lazygit/docs/Keybindings.md

60 lines
1.5 KiB
Markdown
Raw Normal View History

2018-08-06 21:32:43 +10:00
# Keybindings:
## Global:
← → ↑ ↓/h j k l: navigate
PgUp/PgDn: scroll diff panel (use fn+up/down on osx)
q: quit
p: pull
shift+P: push
2018-08-06 21:32:43 +10:00
## Files Panel:
space: toggle staged
c: commit changes
shift+C: commit using git editor
2018-08-06 21:32:43 +10:00
shift+S: stash files
2018-08-08 20:53:14 +10:00
t: add patched (i.e. pick chunks of a file to add)
o: open
e: edit
2018-08-06 20:53:17 +08:00
s: open in sublime (requires 'subl' command)
v: open in vscode (requires 'code' command)
2018-08-06 21:32:43 +10:00
i: add to .gitignore
d: delete if untracked checkout if tracked (aka go away)
shift+R: refresh files
## Branches Panel:
space: checkout branch
f: force checkout branch
m: merge into currently checked out branch
c: checkout by name
n: new branch
2018-08-10 16:46:03 +02:00
d: delete branch
2018-08-06 21:32:43 +10:00
## Commits Panel:
s: squash down (only available for topmost commit)
r: rename commit
g: reset to this commit
## Stash Panel:
space: apply
g: pop
2018-08-06 21:32:43 +10:00
d: drop
## Popup Panel:
esc: close/cancel
enter: confirm
tab: enter newline (if editing)
2018-08-06 21:32:43 +10:00
## Resolving Merge Conflicts (Diff Panel):
← →/h l: navigate conflicts
↑ ↓/ k j: select hunk
space: pick hunk
b: pick both hunks
z: undo (only available while still inside diff panel)