Installing lazygit
lazygit is a single self-contained
program — one file, written in Go, with
no libraries to gather and no runtime to
install beside it. The one companion it
cannot do without is git itself: it
works by running git commands, so git
must already be installed and on your
path. This chapter installs lazygit the
way the lab verified — the project's
release tarball, with its checksum
checked — and names the routes for other
systems, which the lab did not run and
which are labelled as documented-only
here and in criteria.md.
The verified route: the release tarball
The project publishes each release on its GitHub releases page, one archive per operating system and processor. The lab, on 64-bit Linux, used version 0.66.2:
curl -LO https://github.com/jesseduffield/lazygit/releases/download/v0.66.2/lazygit_0.66.2_linux_x86_64.tar.gz
curl -LO https://github.com/jesseduffield/lazygit/releases/download/v0.66.2/checksums.txt
grep linux_x86_64 checksums.txt | sha256sum -c -
tar xzf lazygit_0.66.2_linux_x86_64.tar.gz lazygit
The middle step is the one not to skip:
the project publishes a checksums.txt
beside the archives, and checking the
archive against it proves the download is
the file the project released — the lab's
answer read lazygit_0.66.2_linux_x86_64.tar.gz: OK
(transcript lazygit-lab/transcripts/t00-version.txt).
The archive contains a license, a readme
and the one binary, lazygit — about
twenty megabytes. Put it somewhere on
your path (~/bin or /usr/local/bin
are the usual choices) and it is
installed; delete the file and it is
uninstalled, leaving only its small
configuration folder (chapter 2).
Check: ask it what it is.
$ lazygit --version
commit=63ab89fff478854deb4a35ef8902676b3cc5ca72, build date=2026-10-16T09:27:30Z, build source=binaryRelease, version=0.66.2, os=linux, arch=amd64, git version=2.43.0
Read along the line: the release's own
commit and build date, version=0.66.2,
the operating system and processor it was
built for — and, at the end, git
version=2.43.0, the git lazygit found on
this machine and will be driving. That
last field is the health check for the
pairing: if lazygit cannot find git, it
cannot start, and the version line is
where it tells you what it found.
The version matters when you read other
people's advice. lazygit is actively
developed — the lab's 0.66.2 was released
days before it was installed — and keys
and menus do move between versions. Every
keystroke and screenshot in this guide is
from 0.66.2; the ? popup (chapter 2) is
how you check what your version does.
The other routes, documented only
The project's own readme lists installers
for the common systems, and any of them
ends at the same binary and the same
--version check:
- macOS:
brew install lazygit(Homebrew), or MacPorts. - Windows: Scoop (from its
extrasbucket), Chocolatey, or Winget. - Linux distributions: Arch offers
sudo pacman -S lazygit; Fedora uses a project COPR repository; other distributions vary, and the tarball above works everywhere — the lab's Ubuntu had no distribution package to offer, which is why the tarball is this guide's verified route. - From source: with Go installed,
go install github.com/jesseduffield/lazygit@latestbuilds the current version.
None of these were run by the lab; they are the project's documented doors into the same room, and the version check above is how you confirm you arrived.
The first thing it does
Start it once anywhere (chapter 4 is the
guided first session). Behind the scenes
it has already made its small mark: the
configuration directory now exists, with
an empty config.yml inside it:
lazygit --print-config-dir
ls ~/.config/lazygit
The empty file is a placeholder for your
own settings (chapter 14); every default
lazygit runs on is built into the
program, and reproducible — lazygit
--config prints the entire default
configuration, a long document worth
skimming once to learn what can be
changed (transcript
lazygit-lab/transcripts/t10-config.txt
keeps the part that matters most: the
panel layout, matching the screen panel
for panel).
One warning about freshness: because the
project releases often, an operating
system package may lag the tarball by
several versions. That is rarely a
problem — the ideas in this guide are
older than any current package — but when
a chapter's key seems missing, check
--version before doubting the chapter,
and let ? arbitrate.