jesseduffield /lazygit
simple terminal UI for git commands
★ 83,783⑂ 3,253👁 336⑃ 2,798● 2,762▤ 192◈ 565
TA的项目
83,783
stars
+36+171+695
3,253
forks
336
watchers
2,798
prs
2,762
issues
192
releases
565
discussions
README
Special thanks to:
Warp, the intelligent terminal
Available for macOS and Linux
Visit warp.dev to learn more.
Tuple, the premier screen sharing app for developers on macOS and Windows.
I (Jesse) co-founded Subble to save your company time and money by finding unused and over-provisioned SaaS licences. Check it out!
A simple terminal UI for git commands
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
Lazygit is not my fulltime job but it is a hefty part time job so if you want to support the project please consider sponsoring me
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 stageTop issues
#1712Better UX63 comments · 2022-01-23#24Support i18n29 comments · 2018-08-06#2460Memory climbed to 9.6GB while laptop closed26 comments · 2023-02-20#2181discard/reset on folder can cause errors26 comments · 2022-09-22#3100Lazygit crashes on worktree with bare repo25 comments · 2023-10-30#1707Scroll main panel by whole pages?25 comments · 2022-01-20#2755Push branch without checking out.24 comments · 2023-07-03#1668disableForcePushing, true or false by default?24 comments · 2022-01-12
Discussions
#6179Add commit to the tip of a lower branch in the stack1 comments · 2026-11-06#6163How do I stop LG from removing git tags?1 comments · 2026-10-29#6162Push options such as `git push -o ci.skip`2 comments · 2026-10-28#6148تطوير تحسين1 comments · 2026-10-21#6116Scollbar scrollable with the mouse1 comments · 2026-10-12#6115git add -u by default for "a" hotkey, LMB to add untracked1 comments · 2026-10-12#6111How to change Lazygit default keybind I want to change ctrl+h to be ctrl+w and keep ctrl+w2 comments · 2026-10-10#6103Mark a commit from another branch as good during bisect3 comments · 2026-10-09
Latest release
v0.66.3 v0.66.3 2026-11-07What's Changed Fixes 🔧 Fix removing a submodule in a linked worktree breaking the submodule in the main worktree by @stefanhaller in https://github.com/jesseduffield/lazygit/pull/6186 Ignore submodules whose name or path in .gitmodules leads outside the repository by @stefanhaller in https://github.com/jesseduffield/lazygit/pull/6187 Full Changelog: https://github.com/jesseduffield/lazygit/compare/v0.66.2...v0.66.3