OS Manuals

/usr/bin/lazygit

simple terminal UI for git commands

From lazygit 0.66.3-r0 (os), captured 2026-11-09 by running lazygit --help (exit 0). permalink

lazygit

  Usage:
    lazygit [git-arg]

  Positional Variables:
    git-arg   Panel to focus upon opening lazygit. Accepted values (based on git terminology): status, branch, log, stash. Ignored if --filter arg is passed.

  Subcommands:
    completion   Generate shell completion script for bash or zsh.

  Flags:
    -h    --help               Displays help with available flag, subcommand, and positional value parameters.
    -p    --path               Path of git repo. (equivalent to --work-tree=<path> --git-dir=<path>/.git/)
    -f    --filter             Path to filter on in `git log -- <path>`. When in filter mode, the commits, reflog, and stash are filtered based on the given path, and some operations are restricted
    -v    --version            Print the current version
    -d    --debug              Run in debug mode with logging (see --logs flag below). Use the LOG_LEVEL env var to set the log level (debug/info/warn/error)
    -l    --logs               Tail lazygit logs (intended to be used when `lazygit --debug` is called in a separate terminal tab)
          --profile            Start the profiler and serve it on http port 6060. See CONTRIBUTING.md for more info.
    -c    --config             Print the default config
    -cd   --print-config-dir   Print the config directory
    -ucd  --use-config-dir     override default config directory with provided directory
    -w    --work-tree          equivalent of the --work-tree git argument
    -g    --git-dir            equivalent of the --git-dir git argument
    -ucf  --use-config-file    Comma separated list to custom config file(s)
    -sm   --screen-mode        The initial screen-mode, which determines the size of the focused panel. Valid options: 'normal' (default), 'half', 'full'
Options (14)
OptionDescriptionSource
-h--help Displays help with available flag, subcommand, and positional value parameters.help
-p--path Path of git repo.help
-f--filter Path to filter on in `git log -- <path>`.help
-v--version Print the current versionhelp
-d--debug Run in debug mode with logging (see --logs flag below).help
-l--logs Tail lazygit logs (intended to be used when `lazygit --debug` is called in a separate terminal tab)help
--profileStart the profiler and serve it on http port 6060.help
-c--config Print the default confighelp
-cd--print-config-dir Print the config directoryhelp
-ucd--use-config-dir override default config directory with provided directoryhelp
-w--work-tree equivalent of the --work-tree git argumenthelp
-g--git-dir equivalent of the --git-dir git argumenthelp
-ucf--use-config-file Comma separated list to custom config file(s)help
-sm--screen-mode The initial screen-mode, which determines the size of the focused panel.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.