About jesseduffield/lazygit
jesseduffield/lazygit is an open-source project on GitHub, mainly written in Go. simple terminal UI for git commands It currently holds 83,010 stars and 3,069 forks with 1,051 open issues, and was last pushed on 2026-10-07 (repository created 2018-05-19).
Project Overview
Git Homed tracks it on the Today's Trending board, currently at rank #65 with 49 new stars today.
GitHub Repository Details
README
Available for macOS and Linux
Sponsors
Maintenance of this project is made possible by all the contributors and sponsors. If you'd like to sponsor this project and have your avatar or company logo appear below click here. 💙
Elevator Pitch
Rant time: You've heard it before, git is _powerful_, but what good is that power when everything is so damn hard to do? Interactive rebasing requires you to edit a goddamn TODO file in your editor? _Are you kidding me?_ To stage part of a file you need to use a command line program to step through each hunk and if a hunk can't be split down any further but contains code you don't want to stage, you have to edit an arcane patch file _by hand_? _Are you KIDDING me?!_ Sometimes you get asked to stash your changes when switching branches only to realise that after you switch and unstash that there weren't even any conflicts and it would have been fine to just checkout the branch directly? _YOU HAVE GOT TO BE KIDDING ME!_
If you're a mere mortal like me and you're tired of hearing how powerful git is when in your daily life it's a powerful pain in your ass, lazygit might be for you.
Table of contents
- Sponsors
- Elevator Pitch
- Table of contents
- Features
- Stage hunks or individual lines
- Interactive Rebase
- Cherry-pick
- Bisect
- Nuke the working tree
- Amend an old commit
- Filter
- Invoke a custom command
- Worktrees
- Rebase magic (custom patches)
- Rebase from marked base commit
- Undo
- Commit graph
- Compare two commits
- Tutorials
- Installation
- Binary Releases
- Dev container
- Homebrew
- MacPorts
- Void Linux
- Scoop (Windows)
- gah (Linux and Mac OS)
- Arch Linux
- Fedora / Amazon Linux 2023 / CentOS Stream
- Fedora / RHEL Derivatives (Terra)
- Solus Linux
- Debian and Ubuntu
- Funtoo Linux
- Gentoo Linux
- openSUSE
- NixOS
- Flox
- FreeBSD
- Termux
- Conda
- Go
- Chocolatey (Windows)
- Winget (Windows 10 1709 or later)
- Manual
- Usage
- Keybindings
- Changing Directory On Exit
- Undo/Redo
- Configuration
- Custom Diff Renderers
- Custom Commands
- Git flow support
- Contributing
- Debugging Locally
- Donate
- FAQ
- What do the commit colors represent?
- Shameless Plug
- Alternatives
Features
Stage hunks or individual lines
Press 0 on a changed file to focus its diff in the main view. The selection covers a whole hunk to begin with, so ` stages that hunk and moves on to the next one. When you want only part of a hunk, press a for line-by-line selection and v to select a range of lines. What you staged shows up in the pane below. Press to move between the two panes; unstages in the lower one. Press c` to commit without leaving the diff.
Interactive Rebase
Press i to start an interactive rebase. Then squash (s), fixup (f), drop (d), edit (e), move up (ctrl+k) or move down (ctrl+j) any of the TODO commits, before continuing the rebase by bringing up the rebase options menu with m and then selecting continue.
You can also perform any of these actions as a once-off (e.g. pressing s on a commit to squash it) without explicitly starting a rebase.
This demo also uses shift+down to select a range of commits to move and fixup.
Cherry-pick
Press shift+c on a commit to copy it and press shift+v to paste (cherry-pick) it.
Bisect
Press b in the commits view to mark a commit as good/bad in order to begin a git bisect.
Nuke the working tree
For when you really want to just get rid of anything that shows up when you run git status (and yes that includes dirty submodules) kidpix style, press shift+d to bring up the reset options menu and then select the 'nuke' option.
Amend an old commit
Pressing shift+a on any commit will amend that commit with the currently staged changes (running an interactive rebase in the background).
Filter
You can filter a view with /. Here we filter down our branches view and then hit enter to view its commits.



































































































