2022-01-19 12:36:42 +02:00
_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._
2022-01-04 00:20:38 +02:00
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 >
2022-02-27 07:46:27 +02:00
< kbd > ctrl+r< / kbd > : switch to a recent repo
2022-04-13 19:08:24 +02:00
< kbd > pgup< / kbd > : scroll up main panel (fn+up/shift+k)
< kbd > pgdown< / kbd > : scroll down main panel (fn+down/shift+j)
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
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-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
2021-07-27 12:15:12 +02:00
< kbd > ctrl+s< / kbd > : view filter-by-path options
2020-10-01 23:32:48 +02:00
< kbd > W< / kbd > : open diff menu
< kbd > ctrl+e< / kbd > : open diff menu
2021-06-15 00:37:56 +02:00
< kbd > @< / kbd > : open command log menu
2022-01-04 00:20:38 +02:00
< kbd > }< / kbd > : Increase the size of the context shown around changes in the diff view
< kbd > {< / kbd > : Decrease the size of the context shown around changes in the diff view
2022-02-13 01:39:14 +02:00
< kbd > :< / kbd > : execute custom command
2022-01-23 05:40:28 +02:00
< kbd > z< / kbd > : undo (via reflog) (experimental)
< kbd > ctrl+z< / kbd > : redo (via reflog) (experimental)
< kbd > P< / kbd > : push
< kbd > p< / kbd > : pull
2019-03-02 06:11:53 +02:00
< / pre >
2020-10-01 23:32:48 +02:00
## List Panel Navigation
2020-03-23 14:22:10 +02:00
< pre >
2020-10-01 23:32:48 +02:00
< kbd > .< / kbd > : next page
2021-02-09 11:23:20 +02:00
< kbd > ,< / kbd > : previous page
2020-10-01 23:32:48 +02:00
< kbd > < < / kbd > : scroll to top
< kbd > >< / kbd > : scroll to bottom
2021-02-09 11:23:20 +02:00
< kbd > /< / kbd > : start search
2022-02-27 07:46:27 +02:00
< kbd > H< / kbd > : scroll left
< kbd > L< / kbd > : scroll right
2021-02-09 11:23:20 +02:00
< kbd > ]< / kbd > : next tab
< kbd > [< / kbd > : previous tab
2020-03-23 14:22:10 +02:00
< / pre >
2022-03-26 05:44:30 +02:00
## Commit Files
2022-02-26 07:29:18 +02:00
< pre >
2022-03-24 13:07:30 +02:00
< kbd > ctrl+o< / kbd > : copy the committed file name to the clipboard
2020-02-29 00:17:19 +02:00
< 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
2022-03-23 14:15:54 +02:00
< kbd > a< / kbd > : toggle all files included in patch
2021-03-21 01:56:45 +02:00
< kbd > enter< / kbd > : enter file to add selected lines to the patch (or toggle directory collapsed)
2021-04-06 01:51:04 +02:00
< kbd > `< / kbd > : toggle file tree view
2020-03-10 04:54:55 +02:00
< / pre >
2022-03-26 05:44:30 +02:00
## Commits
2019-03-02 06:11:53 +02:00
< pre >
2022-01-16 05:46:53 +02:00
< kbd > ctrl+o< / kbd > : copy commit SHA to clipboard
< kbd > ctrl+r< / kbd > : reset cherry-picked (copied) commits selection
2022-02-13 01:39:14 +02:00
< kbd > b< / kbd > : view bisect options
2019-03-02 06:11:53 +02:00
< kbd > s< / kbd > : squash down
2022-01-16 05:46:53 +02:00
< kbd > f< / kbd > : fixup commit
2019-03-02 09:45:18 +02:00
< kbd > r< / kbd > : reword commit
2021-12-20 17:47:10 +02:00
< kbd > R< / kbd > : reword commit with editor
2022-01-16 05:46:53 +02:00
< kbd > d< / kbd > : delete commit
< kbd > e< / kbd > : edit commit
< kbd > p< / kbd > : pick commit (when mid-rebase)
2019-05-03 07:03:25 +02:00
< kbd > F< / kbd > : create fixup commit for this commit
2021-06-15 00:37:56 +02:00
< kbd > S< / kbd > : squash all 'fixup!' commits above selected commit (autosquash)
2019-05-25 08:37:47 +02:00
< kbd > ctrl+j< / kbd > : move commit down one
< kbd > ctrl+k< / kbd > : move commit up one
2022-03-27 09:50:49 +02:00
< kbd > v< / kbd > : paste commits (cherry-pick)
2019-03-02 06:11:53 +02:00
< kbd > A< / kbd > : amend commit with staged changes
2022-05-07 16:44:45 +02:00
< kbd > a< / kbd > : reset commit author
2019-03-02 06:11:53 +02:00
< kbd > t< / kbd > : revert commit
2020-02-28 02:41:56 +02:00
< kbd > T< / kbd > : tag commit
2022-03-27 09:50:49 +02:00
< kbd > ctrl+l< / kbd > : open log menu
2022-03-26 07:42:56 +02:00
< kbd > space< / kbd > : checkout commit
2022-03-24 22:04:33 +02:00
< kbd > y< / kbd > : copy commit attribute
2022-01-04 00:20:38 +02:00
< kbd > o< / kbd > : open commit in browser
2022-03-26 07:42:56 +02:00
< kbd > n< / kbd > : create new branch off of commit
2022-03-26 08:28:37 +02:00
< kbd > g< / kbd > : view reset options
2022-03-26 07:42:56 +02:00
< kbd > c< / kbd > : copy commit (cherry-pick)
< kbd > C< / kbd > : copy commit range (cherry-pick)
2022-02-26 07:29:18 +02:00
< kbd > enter< / kbd > : view selected item's files
2019-03-02 06:11:53 +02:00
< / pre >
2022-03-26 05:44:30 +02:00
## Files
2019-03-16 09:43:13 +02:00
< pre >
2022-01-23 05:40:28 +02:00
< kbd > ctrl+o< / kbd > : copy the file name to the clipboard
< kbd > ctrl+w< / kbd > : Toggle whether or not whitespace changes are shown in the diff view
2022-02-26 07:29:18 +02:00
< kbd > d< / kbd > : view 'discard changes' options
2022-01-23 05:40:28 +02:00
< kbd > space< / kbd > : toggle staged
< kbd > ctrl+b< / kbd > : Filter files (staged/unstaged)
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 > 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
2022-04-08 11:32:23 +02:00
< kbd > s< / kbd > : stash all changes
2020-02-29 00:17:19 +02:00
< kbd > S< / kbd > : view stash options
< kbd > a< / kbd > : stage/unstage all
2021-03-21 01:56:45 +02:00
< kbd > enter< / kbd > : stage individual hunks/lines for file, or collapse/expand for directory
2020-02-29 00:17:19 +02:00
< kbd > g< / kbd > : view upstream reset options
2022-02-26 10:35:30 +02:00
< kbd > D< / kbd > : view reset options
2021-03-21 01:56:45 +02:00
< kbd > `< / kbd > : toggle file tree view
2021-06-15 00:37:56 +02:00
< kbd > M< / kbd > : open external merge tool (git mergetool)
2022-02-13 01:39:14 +02:00
< kbd > f< / kbd > : fetch
2020-10-01 23:32:48 +02:00
< / pre >
2022-05-10 13:10:59 +02:00
## Local Branches
< pre >
< kbd > ctrl+o< / kbd > : copy branch name to clipboard
< kbd > i< / kbd > : show git-flow options
< kbd > space< / kbd > : checkout
< kbd > n< / kbd > : new branch
< kbd > o< / kbd > : create pull request
< kbd > O< / kbd > : create pull request options
< kbd > ctrl+y< / kbd > : copy pull request URL to clipboard
< kbd > c< / kbd > : checkout by name
< kbd > F< / kbd > : force checkout
< kbd > d< / kbd > : delete branch
< kbd > r< / kbd > : rebase checked-out branch onto this branch
< kbd > M< / kbd > : merge into currently checked out branch
< kbd > f< / kbd > : fast-forward this branch from its upstream
< kbd > g< / kbd > : view reset options
< kbd > R< / kbd > : rename branch
< kbd > u< / kbd > : set/unset upstream
< kbd > enter< / kbd > : view commits
< / 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
2021-06-15 00:37:56 +02:00
< kbd > M< / kbd > : open external merge tool (git mergetool)
2020-02-29 00:17:19 +02:00
< kbd > space< / kbd > : pick hunk
2021-08-24 14:38:34 +02:00
< kbd > b< / kbd > : pick all hunks
2020-02-29 00:17:19 +02:00
< kbd > ◄< / kbd > : select previous conflict
< kbd > ►< / kbd > : select next conflict
2021-08-24 14:38:34 +02:00
< kbd > ▲< / kbd > : select previous hunk
< kbd > ▼< / kbd > : select next hunk
2022-04-04 14:12:33 +02:00
< kbd > e< / kbd > : edit file
< kbd > o< / kbd > : open file
2020-02-29 00:17:19 +02:00
< 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 >
2022-02-27 07:46:27 +02:00
< kbd > mouse wheel down< / kbd > : scroll down (fn+up)
< kbd > mouse wheel up< / kbd > : scroll up (fn+down)
2020-02-29 00:17:19 +02:00
< / 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
2022-01-04 00:20:38 +02:00
< kbd > ctrl+o< / kbd > : copy the selected text to the clipboard
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
2022-01-04 00:20:38 +02:00
< kbd > ctrl+o< / kbd > : copy the selected text to the clipboard
2020-02-28 02:41:56 +02:00
< kbd > e< / kbd > : edit file
< kbd > v< / kbd > : toggle drag select
< kbd > V< / kbd > : toggle drag select
< kbd > a< / kbd > : toggle select hunk
2022-05-04 14:20:45 +02:00
< kbd > E< / kbd > : edit hunk
2019-03-02 06:11:53 +02:00
< / pre >
2019-03-23 15:46:08 +02:00
2022-03-26 05:44:30 +02:00
## Reflog
2020-03-10 04:54:55 +02:00
< pre >
2022-03-26 05:44:30 +02:00
< kbd > ctrl+o< / kbd > : copy commit SHA to clipboard
< kbd > space< / kbd > : checkout commit
2022-03-26 08:28:37 +02:00
< kbd > y< / kbd > : copy commit attribute
< kbd > o< / kbd > : open commit in browser
< kbd > n< / kbd > : create new branch off of commit
2022-03-26 05:44:30 +02:00
< kbd > g< / kbd > : view reset options
< kbd > c< / kbd > : copy commit (cherry-pick)
< kbd > C< / kbd > : copy commit range (cherry-pick)
< kbd > ctrl+r< / kbd > : reset cherry-picked (copied) commits selection
< kbd > enter< / kbd > : view commits
2020-03-10 04:54:55 +02:00
< / pre >
2022-03-26 05:44:30 +02:00
## Remote Branches
< pre >
< kbd > space< / kbd > : checkout
< kbd > n< / kbd > : new branch
< kbd > M< / kbd > : merge into currently checked out branch
< kbd > r< / kbd > : rebase checked-out branch onto this branch
< kbd > d< / kbd > : delete branch
< kbd > u< / kbd > : set as upstream of checked-out branch
< kbd > esc< / kbd > : Return to remotes list
< kbd > g< / kbd > : view reset options
< kbd > enter< / kbd > : view commits
< / pre >
## Remotes
< pre >
< kbd > f< / kbd > : fetch remote
< kbd > n< / kbd > : add new remote
< kbd > d< / kbd > : remove remote
< kbd > e< / kbd > : edit remote
< / pre >
## Stash
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-10-01 23:32:48 +02:00
< kbd > n< / kbd > : new branch
2022-02-26 07:29:18 +02:00
< kbd > enter< / kbd > : view selected item's files
2020-02-29 00:17:19 +02:00
< / pre >
2022-03-26 05:44:30 +02:00
## Status
2020-02-29 00:17:19 +02:00
< 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
2021-02-09 11:23:20 +02:00
< kbd > a< / kbd > : show all branch logs
2019-03-23 15:46:08 +02:00
< / pre >
2022-03-24 13:07:30 +02:00
2022-03-26 05:44:30 +02:00
## Sub-commits
2022-03-24 13:07:30 +02:00
< pre >
< kbd > ctrl+o< / kbd > : copy commit SHA to clipboard
< kbd > space< / kbd > : checkout commit
2022-03-26 08:28:37 +02:00
< kbd > y< / kbd > : copy commit attribute
< kbd > o< / kbd > : open commit in browser
< kbd > n< / kbd > : create new branch off of commit
2022-03-24 13:07:30 +02:00
< kbd > g< / kbd > : view reset options
< kbd > c< / kbd > : copy commit (cherry-pick)
< kbd > C< / kbd > : copy commit range (cherry-pick)
< kbd > ctrl+r< / kbd > : reset cherry-picked (copied) commits selection
< kbd > enter< / kbd > : view selected item's files
< / pre >
2022-03-26 05:44:30 +02:00
## Submodules
< pre >
< kbd > ctrl+o< / kbd > : copy submodule name to clipboard
< kbd > enter< / kbd > : enter submodule
< kbd > d< / kbd > : remove submodule
< kbd > u< / kbd > : update submodule
< kbd > n< / kbd > : add new submodule
< kbd > e< / kbd > : update submodule URL
< kbd > i< / kbd > : initialize submodule
< kbd > b< / kbd > : view bulk submodule options
< / pre >
## Tags
< 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
< kbd > enter< / kbd > : view commits
< / pre >