$linuxjunkies
>

lazygit(1)

A simple terminal UI for git commands, providing an interactive interface for staging, committing, branching, and other git operations.

UbuntuDebianFedoraArch

Synopsis

lazygit [FLAGS] [OPTIONS]

Description

lazygit is a terminal-based Git client that brings a graphical interface to the command line. It simplifies common git workflows by allowing you to navigate repositories, stage files, create commits, manage branches, and resolve conflicts through keyboard shortcuts and mouse interactions instead of typing git commands.

The interface displays your repository status, recent commits, branches, and diffs in separate panels that you can navigate with arrow keys. It reduces cognitive load by visualizing git state and makes bulk operations like staging multiple files quick and intuitive.

Common options

FlagWhat it does
-h, --helpShow help message and exit
-v, --versionDisplay lazygit version number
-c, --config-dir DIRSet the config directory (default: platform-dependent, typically ~/.config/lazygit)
-w, --work-tree DIRSpecify the working tree directory of your repository
-g, --git-dir DIRSpecify the git directory (default: .git in the work tree)
--use-config-fileLoad config from a config file instead of using defaults
-d, --debugEnable debug logging to lazygit.log
--log-level LEVELSet log verbosity (debug, info, warn, error)

Examples

Launch lazygit in the current directory (assumes it's a git repository)

lazygit

Open lazygit for a specific project repository

cd ~/my-project && lazygit

Start lazygit pointing to a specific work tree and git directory

lazygit -w /path/to/repo -g /path/to/repo/.git

Use a custom config directory instead of the default location

lazygit -c ~/.config/custom-lazygit

Run lazygit with debug logging enabled (useful for troubleshooting)

lazygit --debug

Capture debug output to a file for later inspection

lazygit --log-level debug > debug.log 2>&1

Check which version of lazygit is installed

lazygit --version

Related commands