jesseduffield /lazygit

simple terminal UI for git commands

★ 83,783⑂ 3,253👁 336⑃ 2,798● 2,762▤ 192◈ 565
GoMITCreated 2018-05-19
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  stage

Top issues

Discussions

Latest release

v0.66.3 v0.66.3 2026-11-07
What'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

Snapshot: 2026-11-10T09:35:25Z · Data license Apache-2.0 · JSON