![CI](https://github.com/jesseduffield/lazygit/workflows/Continuous%20Integration/badge.svg) [![Go Report Card](https://goreportcard.com/badge/github.com/jesseduffield/lazygit)](https://goreportcard.com/report/github.com/jesseduffield/lazygit) [![GolangCI](https://golangci.com/badges/github.com/jesseduffield/lazygit.svg)](https://golangci.com) [![GoDoc](https://godoc.org/github.com/jesseduffield/lazygit?status.svg)](http://godoc.org/github.com/jesseduffield/lazygit) [![GitHub tag](https://img.shields.io/github/tag/jesseduffield/lazygit.svg)]() [![TODOs](https://badgen.net/https/api.tickgit.com/badgen/github.com/jesseduffield/lazygit)](https://www.tickgit.com/browse?repo=github.com/jesseduffield/lazygit) A simple terminal UI for git commands, written in Go with the [gocui](https://github.com/jroimartin/gocui "gocui") library. 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. ![Gif](/docs/resources/staging.gif) ## Table of contents - [Installation](#installation) - [Binary releases](#binary-releases) - [Homebrew](#homebrew) - [MacPorts](#macports) - [Ubuntu](#ubuntu) - [Void Linux](#void-linux) - [Scoop (Windows)](#scoop-windows) - [Arch Linux](#arch-linux) - [Fedora and CentOS 7](#fedora-and-centos-7) - [Solus Linux](#solus-linux) - [FreeBSD](#freebsd) - [Conda](#conda) - [Go](#go) - [Usage](#usage) - [Keybindings](#keybindings) - [Changing directory on exit](#changing-directory-on-exit) - [Undo/Redo](#undoredo) - [Configuration](#configuration) - [Custom pagers](#configuration) - [Tutorials](#tutorials) - [Cool Features](#cool-features) - [Contributing](#contributing) - [Donate](#donate) - [Alternatives](#alternatives) Github Sponsors is matching all donations dollar-for-dollar for 12 months so if you're feeling generous consider [sponsoring me](https://github.com/sponsors/jesseduffield) [](https://youtu.be/CPLdltN7wgE) ## Installation ### Binary Releases For Windows, Mac OS or Linux, you can download a binary release [here](../../releases). ### Homebrew Normally the lazygit formula can be found in the Homebrew core but we suggest you tap our formula to get the frequently updated one. It works with Linux, too. Tap: ``` brew install jesseduffield/lazygit/lazygit ``` Core: ``` brew install lazygit ``` ### MacPorts Latest version built from github releases. Tap: ``` sudo port install lazygit ``` ### Ubuntu Packages for Ubuntu are available via [Launchpad PPA](https://launchpad.net/~lazygit-team). ```sh sudo add-apt-repository ppa:lazygit-team/release sudo apt-get update sudo apt-get install lazygit ``` ### Void Linux Packages for Void Linux are available in the distro repo They follow upstream latest releases ```sh sudo xbps-install -S lazygit ``` ### Scoop (Windows) You can install `lazygit` using [scoop](https://scoop.sh/). It's in the `extras` bucket: ```sh # Add the extras bucket scoop bucket add extras # Install lazygit scoop install lazygit ``` ### Arch Linux Packages for Arch Linux are available via AUR (Arch User Repository). There are two packages. The stable one which is built with the latest release and the git version which builds from the most recent commit. - Stable: