LAZYGIT(1)
π LAZYGIT(1) β like, the manual, but make it make sense
okay bestie, so this is lazygit(1) β a General Commands Manual entry, section 1, the whole thing, and I'm about to walk you through it like we're texting at 2am. π¦
β¨ NAME β¨
lazygit β a simple terminal UI for git commands. that's it. that's the vibe. π
πΈ SYNOPSIS πΈ
lazygit [git-arg] [-h | --help] [-v | --version] [-p | --path path]
[-f | --filter path] [-d | --debug] [-l | --logs] [--profile]
[-c | --config] [-cd | --print-config-dir]
[-ucd | --use-config-dir dir] [-w | --work-tree path]
[-g | --git-dir path] [-ucf | --use-config-file files]
[-sm | --screen-mode mode]
like, that's the shape of it. run lazygit, optionally hand it a panel name, optionally hand it some flags, and go off. π
π DESCRIPTION π
lazygit is a simple terminal UI for git commands that makes git easier to use. no cap. it gives you an interactive interface so you can do all the normal git stuff without, y'know, memorising every incantation. π§
it provides an interactive interface to perform common git operations such as:
- Viewing and staging files
- Committing changes
- Browsing logs and diffs
- Managing branches and remotes
- Handling stashes
and the way that all features of lazygit can be easily accessed using arrow keys and intuitive keystrokes?? literally iconic. no memorisation arc required. π«Ά
π OPTIONS π
π Positional Arguments
git-argβ the panel to focus upon openinglazygit. accepted values (based on git terminology):status,branch,log,stash. it gets ignored if the--filterargument is passed. so like, pick one, bestie.
π Flags
-h,--helpβ displays help with available flags, subcommands, and positional value parameters. your lil map. πΊοΈ-v,--versionβ print the current version oflazygit.-p,--pathpath β path of the git repository. this is equivalent to--work-tree=pathand--git-dir=path/.git. two-for-one deal. π-f,--filterpath β path to filter on ingit log -- <path>. when you're in filter mode, the commits, reflog, and stash are filtered based on the given path, and some operations are restricted. so it's giving "focused mode" energy, not full power. π-d,--debugβ run in debug mode with logging. use theLOG_LEVELenvironment variable to set the log level (debug,info,warn,error).-l,--logsβ tail lazygit logs. intended for use whenlazygit --debugis running in another terminal tab. two tabs, one mystery solved. π₯--profileβ start the profiler and serve it on HTTP port6060. see/usr/share/doc/lazygit/CONTRIBUTING.md.gzfor more details.-c,--configβ print the default config.-cd,--print-config-dirβ print the path to the configuration directory.-ucd,--use-config-dirdir β override the default configuration directory with the provided directory.-w,--work-treepath β set the Git--work-treeargument.-g,--git-dirpath β set the Git--git-dirargument.-ucf,--use-config-filefile1,file2,... β use a comma-separated list of custom config file(s). yes, comma-separated. yes, more than one. slay. β¨-sm,--screen-modemode β set the initial screen mode, which determines the size of the focused panel. valid values are:normal(default),half,full.
π KEYBINDINGS π
default keybindings vary by context. for example:
j/kβ move up/down in lists.h/lβ move between panels (left/right).1/2/3/4/5β focus a specific panel.[/]β move between tabs within a panel.sβ stage / unstage a file.cβ open commit panel.pβ push to remote.Pβ pull from remote./β search.PgUp/PgDnβ scroll content (e.g. log or diff views).Spaceβ select item or toggle checkbox (e.g. in stash or patch panels).Enterβ enter panel or confirm action.Escβ cancel action or close popup.qβ quit the application.
to view the full keybindings list, press ? in the application. yes, the whole thing, one keystroke, main character energy.
you can refer to the following files for full keystrokes:
/usr/share/doc/lazygit/docs/keybindings/Keybindings_en.md.gz
π¦ FILES π¦
~/.config/lazygit/config.ymlβ user configuration file. this file defines keybindings, theme settings, git override commands, and more. you can refer to the following file for the complete list of keystrokes:/usr/share/doc/lazygit/docs/Config.md.gz/usr/share/doc/lazygit/docs/Custom_Command_Keybindings.md.gz/usr/share/doc/lazygit/docs/Custom_Pagers.md
~/.config/lazygit/state.ymlβ UI layout and persistent state.
π AUTHORS π
lazygit was written by Jesse Duffield <jesseduffield@gmail.com>. π
This manual was created by Jongmin Kim <jmkim@debian.org> for the Debian project (but may be used by others). π«Ά
okay so that's the whole page, every last flag and file and keystroke, nothing skipped, no cap. π
this was lazygit 0.57.0+ds1-1, dated December 9, 2025, and it lives at LAZYGIT(1). go forth and stage things. βπ
π¦
π¦ where this page comes from
- ubuntu resolute: lazygit 0.57.0+ds1-1 Β· MIT
- ubuntu stonking: lazygit 0.57.0+ds1-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms