What is lazygit?
lazygit is a terminal UI for git commands, written in Go with the gocui library. If you want to use git effectively but don’t want to get into the complexity associated with git commands then lazygit is the right tool for you. Using lazygit, you can perform all advance git operations like undo, redo, merge, rebase, etc. without getting into the complex git commands.
How to install lazygit on MAC OS?
1 2 3 4 5 |
## using homebrew brew install lazygit ## using MacPort sudo port install lazygit |
How to install lazygit on Windows OS?
1 2 3 4 5 6 7 8 9 |
## using snoop # Add the extras bucket scoop bucket add extras # Install lazygit scoop install lazygit ## using chocolatey choco install lazygit |
How to install lazygit on Ubuntu and Debian OS?
1 2 3 4 |
## using apt sudo add-apt-repository ppa:lazygit-team/release sudo apt-get update sudo apt-get install lazygit |
How to install lazygit on RHEL, CentOS, and Fedora OS?
1 2 3 |
## using dnf sudo dnf copr enable atim/lazygit -y sudo dnf install lazygit |
How to install lazygit on Solus Linux, Funtoo Linux, Arch Linux, and FreeBDS Linux OS?
1 2 3 4 5 6 7 8 9 10 11 |
## Solus Linux sudo eopkg install lazygit ## Funtoo Linux sudo emerge dev-vcs/lazygit ## Arch Linux sudo pacman -S lazygit ## FreeBDS Linux pkg install lazygit |
How to install lazygit using go?
1 2 3 4 |
## install go - https://go.dev/doc/install ## install lazygit go install github.com/jesseduffield/lazygit@latest |
lazygit usage:
Once install, get inside a git repository and execute lazygit command to launch the lazygit terminal UI.
1 2 3 4 5 |
## Launch lazygit terminal UI lazygit ## UI Navigation Please refer https://github.com/jesseduffield/lazygit/blob/master/docs/keybindings/Keybindings_en.md for all key options |
To get more details on lazygit, please refer https://github.com/jesseduffield/lazygit