2020-02-29 00:17:19 +02:00
|
|
|
# Lazygit Keybindings
|
2019-03-02 06:11:53 +02:00
|
|
|
|
2020-02-29 00:17:19 +02:00
|
|
|
## Global Keybindings
|
2019-03-02 06:11:53 +02:00
|
|
|
|
|
|
|
<pre>
|
2020-02-29 00:17:19 +02:00
|
|
|
<kbd>pgup</kbd>: scroll up main panel (fn+up)
|
|
|
|
<kbd>pgdown</kbd>: scroll down main panel (fn+down)
|
2019-03-02 06:11:53 +02:00
|
|
|
<kbd>m</kbd>: view merge/rebase options
|
2020-01-03 14:01:32 +02:00
|
|
|
<kbd>ctrl+p</kbd>: view custom patch options
|
2019-03-02 06:11:53 +02:00
|
|
|
<kbd>P</kbd>: push
|
|
|
|
<kbd>p</kbd>: pull
|
2020-02-29 00:17:19 +02:00
|
|
|
<kbd>R</kbd>: refresh
|
2020-03-12 07:29:15 +02:00
|
|
|
<kbd>x</kbd>: open menu
|
2020-03-25 11:24:03 +02:00
|
|
|
<kbd>z</kbd>: undo (via reflog) (experimental)
|
|
|
|
<kbd>ctrl+z</kbd>: redo (via reflog) (experimental)
|
2020-02-28 02:41:56 +02:00
|
|
|
<kbd>+</kbd>: next screen mode (normal/half/fullscreen)
|
2020-02-29 00:17:19 +02:00
|
|
|
<kbd>_</kbd>: prev screen mode
|
2020-02-28 02:41:56 +02:00
|
|
|
<kbd>:</kbd>: execute custom command
|
2020-07-18 11:41:13 +02:00
|
|
|
<kbd>|</kbd>: view scoping options
|
2020-08-15 03:23:14 +02:00
|
|
|
<kbd>∂</kbd>: open diff menu
|
2019-03-02 06:11:53 +02:00
|
|
|
</pre>
|
|
|
|
|
2020-03-23 14:22:10 +02:00
|
|
|
## Branches Panel
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
<kbd>]</kbd>: next tab
|
|
|
|
<kbd>[</kbd>: previous tab
|
|
|
|
</pre>
|
|
|
|
|
2020-02-29 00:17:19 +02:00
|
|
|
## Branches Panel (Branches Tab)
|
2019-03-02 06:11:53 +02:00
|
|
|
|
|
|
|
<pre>
|
|
|
|
<kbd>space</kbd>: checkout
|
|
|
|
<kbd>o</kbd>: create pull request
|
|
|
|
<kbd>c</kbd>: checkout by name
|
|
|
|
<kbd>F</kbd>: force checkout
|
|
|
|
<kbd>n</kbd>: new branch
|
|
|
|
<kbd>d</kbd>: delete branch
|
2020-02-29 00:17:19 +02:00
|
|
|
<kbd>r</kbd>: rebase checked-out branch onto this branch
|
2019-03-02 06:11:53 +02:00
|
|
|
<kbd>M</kbd>: merge into currently checked out branch
|
2020-02-28 02:41:56 +02:00
|
|
|
<kbd>i</kbd>: show git-flow options
|
2019-03-02 06:11:53 +02:00
|
|
|
<kbd>f</kbd>: fast-forward this branch from its upstream
|
2020-02-28 02:41:56 +02:00
|
|
|
<kbd>g</kbd>: view reset options
|
2020-03-18 13:08:50 +02:00
|
|
|
<kbd>R</kbd>: rename branch
|
2020-07-18 11:41:13 +02:00
|
|
|
<kbd>ctrl+o</kbd>: copy branch name to clipboard
|
2020-03-28 05:08:54 +02:00
|
|
|
<kbd>,</kbd>: previous page
|
|
|
|
<kbd>.</kbd>: next page
|
|
|
|
<kbd><</kbd>: scroll to top
|
2020-03-10 04:54:55 +02:00
|
|
|
<kbd>/</kbd>: start search
|
2020-03-28 05:08:54 +02:00
|
|
|
<kbd>></kbd>: scroll to bottom
|
2019-03-02 06:11:53 +02:00
|
|
|
</pre>
|
|
|
|
|
2020-02-29 00:17:19 +02:00
|
|
|
## Branches Panel (Remote Branches (in Remotes tab))
|
|
|
|
|
|
|
|
<pre>
|
2020-08-15 03:23:14 +02:00
|
|
|
<kbd>esc</kbd>: Return to remotes list
|
2020-02-29 00:17:19 +02:00
|
|
|
<kbd>g</kbd>: view reset options
|
|
|
|
<kbd>space</kbd>: checkout
|
2020-07-18 11:41:13 +02:00
|
|
|
<kbd>n</kbd>: new branch
|
2020-02-29 00:17:19 +02:00
|
|
|
<kbd>M</kbd>: merge into currently checked out branch
|
|
|
|
<kbd>d</kbd>: delete branch
|
|
|
|
<kbd>r</kbd>: rebase checked-out branch onto this branch
|
|
|
|
<kbd>u</kbd>: set as upstream of checked-out branch
|
2020-03-28 05:08:54 +02:00
|
|
|
<kbd>,</kbd>: previous page
|
|
|
|
<kbd>.</kbd>: next page
|
|
|
|
<kbd><</kbd>: scroll to top
|
2020-03-10 04:54:55 +02:00
|
|
|
<kbd>/</kbd>: start search
|
2020-03-28 05:08:54 +02:00
|
|
|
<kbd>></kbd>: scroll to bottom
|
2020-02-29 00:17:19 +02:00
|
|
|
</pre>
|
|
|
|
|
|
|
|
## Branches Panel (Remotes Tab)
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
<kbd>f</kbd>: fetch remote
|
|
|
|
<kbd>n</kbd>: add new remote
|
|
|
|
<kbd>d</kbd>: remove remote
|
|
|
|
<kbd>e</kbd>: edit remote
|
2020-03-28 05:08:54 +02:00
|
|
|
<kbd>,</kbd>: previous page
|
|
|
|
<kbd>.</kbd>: next page
|
|
|
|
<kbd><</kbd>: scroll to top
|
2020-03-10 04:54:55 +02:00
|
|
|
<kbd>/</kbd>: start search
|
2020-03-28 05:08:54 +02:00
|
|
|
<kbd>></kbd>: scroll to bottom
|
2020-02-29 00:17:19 +02:00
|
|
|
</pre>
|
|
|
|
|
|
|
|
## Branches Panel (Tags Tab)
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
<kbd>space</kbd>: checkout
|
|
|
|
<kbd>d</kbd>: delete tag
|
|
|
|
<kbd>P</kbd>: push tag
|
|
|
|
<kbd>n</kbd>: create tag
|
|
|
|
<kbd>g</kbd>: view reset options
|
2020-03-28 05:08:54 +02:00
|
|
|
<kbd>,</kbd>: previous page
|
|
|
|
<kbd>.</kbd>: next page
|
|
|
|
<kbd><</kbd>: scroll to top
|
2020-03-10 04:54:55 +02:00
|
|
|
<kbd>/</kbd>: start search
|
2020-03-28 05:08:54 +02:00
|
|
|
<kbd>></kbd>: scroll to bottom
|
2020-02-29 00:17:19 +02:00
|
|
|
</pre>
|
|
|
|
|
|
|
|
## Commit Files Panel
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
<kbd>esc</kbd>: go back
|
|
|
|
<kbd>c</kbd>: checkout file
|
|
|
|
<kbd>d</kbd>: discard this commit's changes to this file
|
|
|
|
<kbd>o</kbd>: open file
|
2020-07-21 10:12:05 +02:00
|
|
|
<kbd>e</kbd>: edit file
|
2020-02-29 00:17:19 +02:00
|
|
|
<kbd>space</kbd>: toggle file included in patch
|
|
|
|
<kbd>enter</kbd>: enter file to add selected lines to the patch
|
2020-03-28 05:08:54 +02:00
|
|
|
<kbd>,</kbd>: previous page
|
|
|
|
<kbd>.</kbd>: next page
|
|
|
|
<kbd><</kbd>: scroll to top
|
2020-03-10 04:54:55 +02:00
|
|
|
<kbd>/</kbd>: start search
|
2020-03-28 05:08:54 +02:00
|
|
|
<kbd>></kbd>: scroll to bottom
|
2020-03-10 04:54:55 +02:00
|
|
|
</pre>
|
|
|
|
|
|
|
|
## Commits Panel
|
|
|
|
|
|
|
|
<pre>
|
2020-03-23 14:22:10 +02:00
|
|
|
<kbd>]</kbd>: next tab
|
|
|
|
<kbd>[</kbd>: previous tab
|
2020-02-29 00:17:19 +02:00
|
|
|
</pre>
|
|
|
|
|
|
|
|
## Commits Panel (Commits Tab)
|
2019-03-02 06:11:53 +02:00
|
|
|
|
|
|
|
<pre>
|
|
|
|
<kbd>s</kbd>: squash down
|
2019-03-02 09:45:18 +02:00
|
|
|
<kbd>r</kbd>: reword commit
|
2019-03-02 06:11:53 +02:00
|
|
|
<kbd>R</kbd>: rename commit with editor
|
|
|
|
<kbd>g</kbd>: reset to this commit
|
|
|
|
<kbd>f</kbd>: fixup commit
|
2019-05-03 07:03:25 +02:00
|
|
|
<kbd>F</kbd>: create fixup commit for this commit
|
|
|
|
<kbd>S</kbd>: squash above commits
|
2019-03-02 06:11:53 +02:00
|
|
|
<kbd>d</kbd>: delete commit
|
2019-05-25 08:37:47 +02:00
|
|
|
<kbd>ctrl+j</kbd>: move commit down one
|
|
|
|
<kbd>ctrl+k</kbd>: move commit up one
|
2019-03-02 06:11:53 +02:00
|
|
|
<kbd>e</kbd>: edit commit
|
|
|
|
<kbd>A</kbd>: amend commit with staged changes
|
|
|
|
<kbd>p</kbd>: pick commit (when mid-rebase)
|
|
|
|
<kbd>t</kbd>: revert commit
|
|
|
|
<kbd>c</kbd>: copy commit (cherry-pick)
|
2020-07-18 11:41:13 +02:00
|
|
|
<kbd>ctrl+o</kbd>: copy commit SHA to clipboard
|
2019-03-02 06:11:53 +02:00
|
|
|
<kbd>C</kbd>: copy commit range (cherry-pick)
|
|
|
|
<kbd>v</kbd>: paste commits (cherry-pick)
|
2019-03-16 09:43:13 +02:00
|
|
|
<kbd>enter</kbd>: view commit's files
|
2020-02-29 00:17:19 +02:00
|
|
|
<kbd>space</kbd>: checkout commit
|
2020-08-16 14:01:14 +02:00
|
|
|
<kbd>n</kbd>: create new branch off of commit
|
2020-02-28 02:41:56 +02:00
|
|
|
<kbd>T</kbd>: tag commit
|
2020-03-23 14:22:10 +02:00
|
|
|
<kbd>ctrl+r</kbd>: reset cherry-picked (copied) commits selection
|
2020-03-28 05:08:54 +02:00
|
|
|
<kbd>,</kbd>: previous page
|
|
|
|
<kbd>.</kbd>: next page
|
|
|
|
<kbd><</kbd>: scroll to top
|
|
|
|
<kbd>/</kbd>: start search
|
|
|
|
<kbd>></kbd>: scroll to bottom
|
2019-03-02 06:11:53 +02:00
|
|
|
</pre>
|
|
|
|
|
2020-02-29 00:17:19 +02:00
|
|
|
## Commits Panel (Reflog Tab)
|
2019-03-02 06:11:53 +02:00
|
|
|
|
|
|
|
<pre>
|
2020-02-29 00:17:19 +02:00
|
|
|
<kbd>space</kbd>: checkout commit
|
|
|
|
<kbd>g</kbd>: view reset options
|
2020-03-28 05:08:54 +02:00
|
|
|
<kbd>,</kbd>: previous page
|
|
|
|
<kbd>.</kbd>: next page
|
|
|
|
<kbd><</kbd>: scroll to top
|
|
|
|
<kbd>/</kbd>: start search
|
|
|
|
<kbd>></kbd>: scroll to bottom
|
2019-03-02 06:11:53 +02:00
|
|
|
</pre>
|
|
|
|
|
2020-02-29 00:17:19 +02:00
|
|
|
## Files Panel
|
2019-03-16 09:43:13 +02:00
|
|
|
|
|
|
|
<pre>
|
2020-02-29 00:17:19 +02:00
|
|
|
<kbd>c</kbd>: commit changes
|
|
|
|
<kbd>w</kbd>: commit changes without pre-commit hook
|
|
|
|
<kbd>A</kbd>: amend last commit
|
|
|
|
<kbd>C</kbd>: commit changes using git editor
|
|
|
|
<kbd>space</kbd>: toggle staged
|
|
|
|
<kbd>d</kbd>: view 'discard changes' options
|
|
|
|
<kbd>e</kbd>: edit file
|
2019-03-16 09:43:13 +02:00
|
|
|
<kbd>o</kbd>: open file
|
2020-02-29 00:17:19 +02:00
|
|
|
<kbd>i</kbd>: add to .gitignore
|
|
|
|
<kbd>r</kbd>: refresh files
|
|
|
|
<kbd>s</kbd>: stash changes
|
|
|
|
<kbd>S</kbd>: view stash options
|
|
|
|
<kbd>a</kbd>: stage/unstage all
|
|
|
|
<kbd>D</kbd>: view reset options
|
|
|
|
<kbd>enter</kbd>: stage individual hunks/lines
|
|
|
|
<kbd>f</kbd>: fetch
|
|
|
|
<kbd>g</kbd>: view upstream reset options
|
2020-03-28 05:08:54 +02:00
|
|
|
<kbd>,</kbd>: previous page
|
|
|
|
<kbd>.</kbd>: next page
|
|
|
|
<kbd><</kbd>: scroll to top
|
2020-03-10 04:54:55 +02:00
|
|
|
<kbd>/</kbd>: start search
|
2020-03-28 05:08:54 +02:00
|
|
|
<kbd>></kbd>: scroll to bottom
|
2019-03-16 09:43:13 +02:00
|
|
|
</pre>
|
|
|
|
|
2020-02-29 00:17:19 +02:00
|
|
|
## Main Panel (Merging)
|
2019-03-02 06:11:53 +02:00
|
|
|
|
|
|
|
<pre>
|
2020-02-29 00:17:19 +02:00
|
|
|
<kbd>esc</kbd>: return to files panel
|
|
|
|
<kbd>space</kbd>: pick hunk
|
|
|
|
<kbd>b</kbd>: pick both hunks
|
|
|
|
<kbd>◄</kbd>: select previous conflict
|
|
|
|
<kbd>►</kbd>: select next conflict
|
|
|
|
<kbd>▲</kbd>: select top hunk
|
|
|
|
<kbd>▼</kbd>: select bottom hunk
|
|
|
|
<kbd>z</kbd>: undo
|
2019-03-02 06:11:53 +02:00
|
|
|
</pre>
|
|
|
|
|
2020-02-29 00:17:19 +02:00
|
|
|
## Main Panel (Normal)
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
<kbd> ̄</kbd>: scroll down (fn+up)
|
|
|
|
<kbd>¦</kbd>: scroll up (fn+down)
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
## Main Panel (Patch Building)
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
<kbd>esc</kbd>: exit line-by-line mode
|
2020-08-15 03:23:14 +02:00
|
|
|
<kbd>o</kbd>: open file
|
2020-02-29 00:17:19 +02:00
|
|
|
<kbd>▲</kbd>: select previous line
|
|
|
|
<kbd>▼</kbd>: select next line
|
|
|
|
<kbd>◄</kbd>: select previous hunk
|
|
|
|
<kbd>►</kbd>: select next hunk
|
2020-03-05 02:36:35 +02:00
|
|
|
<kbd>space</kbd>: add/remove line(s) to patch
|
2020-02-29 00:17:19 +02:00
|
|
|
<kbd>v</kbd>: toggle drag select
|
|
|
|
<kbd>V</kbd>: toggle drag select
|
|
|
|
<kbd>a</kbd>: toggle select hunk
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
## Main Panel (Staging)
|
2019-03-02 06:11:53 +02:00
|
|
|
|
|
|
|
<pre>
|
|
|
|
<kbd>esc</kbd>: return to files panel
|
2020-03-05 02:36:35 +02:00
|
|
|
<kbd>space</kbd>: toggle line staged / unstaged
|
|
|
|
<kbd>d</kbd>: delete change (git reset)
|
2020-02-28 02:41:56 +02:00
|
|
|
<kbd>tab</kbd>: switch to other panel
|
2020-08-15 03:23:14 +02:00
|
|
|
<kbd>o</kbd>: open file
|
2019-03-02 06:11:53 +02:00
|
|
|
<kbd>▲</kbd>: select previous line
|
|
|
|
<kbd>▼</kbd>: select next line
|
|
|
|
<kbd>◄</kbd>: select previous hunk
|
|
|
|
<kbd>►</kbd>: select next hunk
|
2020-02-28 02:41:56 +02:00
|
|
|
<kbd>e</kbd>: edit file
|
|
|
|
<kbd>o</kbd>: open file
|
|
|
|
<kbd>v</kbd>: toggle drag select
|
|
|
|
<kbd>V</kbd>: toggle drag select
|
|
|
|
<kbd>a</kbd>: toggle select hunk
|
2020-02-29 00:17:19 +02:00
|
|
|
<kbd>c</kbd>: commit changes
|
|
|
|
<kbd>w</kbd>: commit changes without pre-commit hook
|
2020-02-28 02:41:56 +02:00
|
|
|
<kbd>C</kbd>: commit changes using git editor
|
2019-03-02 06:11:53 +02:00
|
|
|
</pre>
|
2019-03-23 15:46:08 +02:00
|
|
|
|
2020-03-10 04:54:55 +02:00
|
|
|
## Menu Panel
|
|
|
|
|
|
|
|
<pre>
|
2020-03-12 07:26:11 +02:00
|
|
|
<kbd>esc</kbd>: close menu
|
2020-03-28 05:08:54 +02:00
|
|
|
<kbd>,</kbd>: previous page
|
|
|
|
<kbd>.</kbd>: next page
|
|
|
|
<kbd><</kbd>: scroll to top
|
2020-03-10 04:54:55 +02:00
|
|
|
<kbd>/</kbd>: start search
|
2020-03-28 05:08:54 +02:00
|
|
|
<kbd>></kbd>: scroll to bottom
|
2020-03-10 04:54:55 +02:00
|
|
|
</pre>
|
|
|
|
|
2020-02-29 00:17:19 +02:00
|
|
|
## Stash Panel
|
2019-03-23 15:46:08 +02:00
|
|
|
|
|
|
|
<pre>
|
2020-02-29 00:17:19 +02:00
|
|
|
<kbd>space</kbd>: apply
|
|
|
|
<kbd>g</kbd>: pop
|
|
|
|
<kbd>d</kbd>: drop
|
2020-03-28 05:08:54 +02:00
|
|
|
<kbd>,</kbd>: previous page
|
|
|
|
<kbd>.</kbd>: next page
|
|
|
|
<kbd><</kbd>: scroll to top
|
2020-03-10 04:54:55 +02:00
|
|
|
<kbd>/</kbd>: start search
|
2020-03-28 05:08:54 +02:00
|
|
|
<kbd>></kbd>: scroll to bottom
|
2020-02-29 00:17:19 +02:00
|
|
|
</pre>
|
|
|
|
|
|
|
|
## Status Panel
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
<kbd>e</kbd>: edit config file
|
|
|
|
<kbd>o</kbd>: open config file
|
|
|
|
<kbd>u</kbd>: check for update
|
|
|
|
<kbd>enter</kbd>: switch to a recent repo
|
2019-03-23 15:46:08 +02:00
|
|
|
</pre>
|