simple terminal UI for git commands
open sourceMITself-hostablefree
lazygit is a terminal UI for git that makes common but fiddly operations quick: staging individual hunks or lines, interactive rebase with single keys, cherry-picking, worktrees, custom patches, and undo. It is written in Go and configurable with custom commands.
Ways to install
Package managers
Problems it solves
- staging only some lines of a file with git add -p is painful
- interactive rebase in a text editor TODO file is error-prone
- want to squash, reorder and fixup commits with a couple of keystrokes
- git command line is powerful but everything takes too many commands
- need a visual git client that runs inside the terminal over SSH
- cherry-pick commits between branches without copying hashes
- undo my last git mistake easily
- see branches, log, diff and staged files on one screen
- resolve merge conflicts more visually without leaving the terminal
Features
- line and hunk staging
- interactive rebase
- cherry-pick
- worktrees
- custom patches
- undo/redo
- custom commands
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what lazygit does.
