2019-03-02 06:11:53 +02:00
|
|
|
# Lazygit menu
|
|
|
|
|
|
|
|
## Global
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
<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
|
|
|
|
<kbd>R</kbd>: refresh
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
## Status
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
<kbd>e</kbd>: edit config file
|
|
|
|
<kbd>o</kbd>: open config file
|
|
|
|
<kbd>u</kbd>: check for update
|
|
|
|
<kbd>s</kbd>: switch to a recent repo
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
## Files
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
<kbd>c</kbd>: commit changes
|
2019-05-03 07:03:25 +02:00
|
|
|
<kbd>w</kbd>: commit changes without pre-commit hook
|
2019-03-02 06:11:53 +02:00
|
|
|
<kbd>A</kbd>: amend last commit
|
|
|
|
<kbd>C</kbd>: commit changes using git editor
|
|
|
|
<kbd>space</kbd>: toggle staged
|
2019-03-23 15:46:08 +02:00
|
|
|
<kbd>d</kbd>: view 'discard changes' options
|
2019-03-02 06:11:53 +02:00
|
|
|
<kbd>e</kbd>: edit file
|
|
|
|
<kbd>o</kbd>: open file
|
|
|
|
<kbd>i</kbd>: add to .gitignore
|
|
|
|
<kbd>r</kbd>: refresh files
|
2019-03-02 09:45:18 +02:00
|
|
|
<kbd>S</kbd>: stash files
|
2019-03-02 06:11:53 +02:00
|
|
|
<kbd>a</kbd>: stage/unstage all
|
|
|
|
<kbd>t</kbd>: add patch
|
2019-03-23 15:46:08 +02:00
|
|
|
<kbd>D</kbd>: view reset options
|
2019-03-02 06:11:53 +02:00
|
|
|
<kbd>enter</kbd>: stage individual hunks/lines
|
|
|
|
<kbd>f</kbd>: fetch
|
2019-05-03 07:03:25 +02:00
|
|
|
<kbd>X</kbd>: execute custom command
|
2019-03-02 06:11:53 +02:00
|
|
|
</pre>
|
|
|
|
|
|
|
|
## Branches
|
|
|
|
|
|
|
|
<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
|
|
|
|
<kbd>r</kbd>: rebase branch
|
|
|
|
<kbd>M</kbd>: merge into currently checked out branch
|
|
|
|
<kbd>f</kbd>: fast-forward this branch from its upstream
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
## Commits
|
|
|
|
|
|
|
|
<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)
|
|
|
|
<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
|
2019-05-03 07:03:25 +02:00
|
|
|
<kbd>space</kbd>: select commit to diff with another commit
|
2019-03-02 06:11:53 +02:00
|
|
|
</pre>
|
|
|
|
|
|
|
|
## Stash
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
<kbd>space</kbd>: apply
|
|
|
|
<kbd>g</kbd>: pop
|
|
|
|
<kbd>d</kbd>: drop
|
|
|
|
</pre>
|
|
|
|
|
2019-03-16 09:43:13 +02:00
|
|
|
## Commit files
|
|
|
|
|
|
|
|
<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
|
|
|
|
</pre>
|
|
|
|
|
2019-03-02 06:11:53 +02:00
|
|
|
## Main (Normal)
|
|
|
|
|
|
|
|
<pre>
|
2019-05-07 08:55:30 +02:00
|
|
|
<kbd>PgDn</kbd>: scroll down (fn+up)
|
|
|
|
<kbd>PgUp</kbd>: scroll up (fn+down)
|
2019-03-02 06:11:53 +02:00
|
|
|
</pre>
|
|
|
|
|
|
|
|
## Main (Staging)
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
<kbd>esc</kbd>: return to files panel
|
|
|
|
<kbd>▲</kbd>: select previous line
|
|
|
|
<kbd>▼</kbd>: select next line
|
|
|
|
<kbd>◄</kbd>: select previous hunk
|
|
|
|
<kbd>►</kbd>: select next hunk
|
|
|
|
<kbd>space</kbd>: stage line
|
|
|
|
<kbd>a</kbd>: stage hunk
|
|
|
|
</pre>
|
2019-03-23 15:46:08 +02:00
|
|
|
|
|
|
|
## Main (Merging)
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
<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
|
|
|
|
</pre>
|