Lazygit runs in your terminal inside a Git repository and provides keyboard-driven panes to stage, commit, rebase, cherry-pick, bisect, and inspect history without memorizing long Git command sequences.
Overview
Lazygit is a terminal UI that wraps common Git tasks in focused views for files, branches, commits, and diffs. You launch it from a repository directory and navigate with keybindings instead of typing full Git invocations for routine work.
Changed files can be staged by hunk or individual line, with a split view for staged and unstaged content and in-diff commits. Interactive rebase supports squash, fixup, drop, edit, and reordering commits, including one-off squash actions without opening a separate todo file. Cherry-pick, bisect, worktrees, custom patches carved from older commits, and rebasing from a marked base commit are documented with demos.
The commit graph highlights authors and parent relationships in enlarged layouts, and compare mode diffs two selected commits. Undo and redo use the reflog for branch and commit actions but not working-tree or stash changes. Optional GitHub pull request badges in the branches panel need the gh CLI authenticated; GitHub Enterprise hosts can be configured in services settings.
Binary releases cover Windows, macOS, and Linux, with many distribution packages maintained by third parties. Configuration supports custom commands, diff renderers, git-flow style workflows, and changing the shell directory on exit when using a documented alias pattern.
Key features
- Line-level and hunk staging
- Interactive rebase from the TUI
- Cherry-pick and bisect support
- Git worktree creation and switch
- Custom patch rebase operations
- Commit graph and compare mode
- Undo and redo via reflog
- GitHub pull request branch hints
Use cases
- Staging part of a file without patch files
- Rewriting commit history interactively
- Managing feature branches with worktrees
- Reviewing commit graphs in the terminal
- Recovering from mistaken drops with undo