Writing criteria for this guide
Every "for Mere Mortals" guide is written to the same nine-point standard, so a reader who trusts one can trust the rest. Here it is, with the verification notes for this particular guide below.
- Fix it first. Reader outcomes lead, not action items: each chapter opens by naming the outcome it delivers, shows a check the reader can run to confirm they got it, and a reasonable reader finishes able to state what was done, what it means, and what to try next.
- Plain language. Short sentences, everyday vocabulary, technical terms defined on first use. No slang, and no idioms that only make sense in one country — the reader may be translating as they go.
- No dead ends. A guide never tells the reader to do something it cannot show them how to verify. Every claim a reader relies on — an install, a command, an output — is something this guide demonstrates or clearly labels documented-only below.
- Live-verified where it matters. Procedures are run for real in the guide's lab wherever the build machine allows it, and the transcripts kept in the repository are the evidence. What could not be run is listed honestly below, never presented as if it had been.
- General audiences. Nothing in this guide — examples, fixtures, names, addresses — is modelled on any particular reader or author's real life, network, or organisations. The lab's repositories are invented fixtures, built by a script kept in this repository, and hold nothing else.
- Standalone. A reader needs this guide, its lab, and nothing else. Where another guide would genuinely help, it is pointed to once, by name, and the chapter still completes without it.
- Honest about limits. Chapter 16 names what the tool cannot do: teach the model it merely displays, settle a conflict whose right answer is neither side, resolve a binary file's conflict, supply network credentials it was never given, and stay quick in a repository whose status alone takes seconds.
- The safety rule is in the text, early. Chapter 1 and the README state the rule plainly — work in repositories that are yours, and commit before you experiment: the reflog can return almost anything you have committed, and nothing can return what you never committed — before any procedure depends on it, and later chapters point back to it where one keystroke would make forgetting it easy.
- Builds clean. The site builds with MkDocs in strict mode with no warnings, and a fresh reader following the chapters in order reaches the stated outcome of each.
Verification notes for this guide
The build machine is a small Ubuntu 24.04 sandbox with git
2.43.0. lazygit 0.66.2 was installed from the project's
official release tarball, its checksum verified against the
project's own checksums file (transcript t00). The program
is a terminal interface and prints nothing to a log, so the
lab drove it in a real pseudo-terminal, sending real
keystrokes and capturing the screen after each step; the
captures are the transcripts in lazygit-lab/transcripts/.
After nearly every session the lab checked the result with
plain git — git log, git status, git stash list — and
several findings below exist because a check failed on the
first attempt and showed why. The practice repositories were
rebuilt from lazygit-lab/mkfixture.sh before any session
that depended on their state.
Run for real, with transcripts as evidence:
- Install and version: the tarball, the checksum, the single
binary it contains, and
--versionreporting both lazygit's version and the git it found (t00).--help,--config(the whole default configuration) and--print-config-dirwere all run and read (t10). - The first screen against the fixture: all five numbered panels, the main panel's diff, the command log, the hint bar, and the first-run welcome popup that must be dismissed before any key does its job (t01).
- Starting outside a repository: lazygit asks "Not in a git repository. Create a new git repository? (y/N):" and, answered no, prints "Must open lazygit in a git repository" and exits (t11).
- Files: j and k moving through the tree, Space staging one
modified file and one untracked file, the two status
columns changing, and the command log showing the real
git add -- <file>for each (t02). Two accidents kept as findings: Enter on the folder row collapses the tree, and Space on the folder stages everything under it —git add -- .(chapter 5). - Committing: the two-box editor (summary, description, a
character count), Tab between the boxes, Enter to commit,
and the new commit verified in
git log(t03). With nothing staged,cfirst asks "You have not staged any files. Commit all files?" — confirming rangit add -Aand opened the same editor (chapter 5). - Panels: the number keys 3, 4 and 5 jump straight to the branches, commits and stash panels, and each panel's hint bar names its own keys (t04, t05, t06).
- Branches: Space checks out (command log:
git checkout), the current branch re-sorts to the top, Space on the current branch raises the error "You have already checked out this branch", andncreates and checks out a new branch in one motion (git checkout -b winter-notes refs/heads/main --no-track) (t04). Enter on a branch opens its list of commits; Enter on a commit opens the list of files it touched (chapter 7). - History: the Commits panel's main view is the selected
commit's full patch — header, diffstat, diff (t05).
Rewording the top commit with
rrewrote it; git's log shows the same subject with the addition and a new hash (t05). - Undo and redo:
zafter a commit proposed "soft reset to ''" and, confirmed, ran exactly that ( git reset --softin the command log); the commit vanished and its changes sat staged again, verified with git (t13, t14).Zoffered the redo as a hard reset forward, "an auto-stash will be performed if necessary" (t14). - The stash:
Sopens the options menu (all changes, keep index, including untracked, staged only, unstaged only); plainsasks for a message and runsgit stash push -m "..."; untracked files are left behind; the Stash panel shows the entry and its diff; Space applies,gpops — behind a confirmation the lab accepted, after whichgit stash listwas empty and the changes were back (t06). - Discarding:
dopens a menu whose lower box describes the highlighted choice in plain words ("Discard both staged and unstaged changes in 'summer-walk.txt'"); choosing rangit checkout -- summer-walk.txtand the modification was gone fromgit status, while staged and untracked neighbours were untouched (t07). Thegreset menu (mixed, soft, hard, each described) was captured the same way (t07). - A merge conflict, end to end: the status line "(merging)
conflict", the Files panel narrowed to the conflicted
file marked UU, the conflict markers in the main panel,
Enter into the conflict view, Space picking the HEAD side
of the hunk, lazygit staging the resolved file itself,
and the merge concluded through the
mmenu's continue — git's log shows the merge commit (t08). One genuine rough edge, kept: when the resolution made the file identical to HEAD,crefused with "No files staged", and themmenu was the way out (chapter 11). - Remotes: against a bare repository on the same machine,
the Status panel showed ↓1 when a commit existed only on
the remote and ↑1 when a local commit was unpushed;
ppulled (fast-forward verified in git's log) andPpushed (the bare repository's tip verified to match). Fetching was verified separately: with the local record of the remote deliberately left stale, the ↓1 was on screen at open, before any keypress — lazygit fetches when it opens; the printed defaults supply the sixty second background interval and thefbinding (t09). - Configuration: an empty
config.ymlwaiting in the config directory, and two lines in it —gui.showFileTree: false— turning the Files panel from a tree into a flat list (t10). - The keybindings popup:
?in the Files panel lists 66 bindings for that panel, filterable by typing (t12).
Documented only — described from the project's documentation, not run, and the text does not claim otherwise:
- Every install route except the release tarball: Homebrew and MacPorts on macOS, Scoop, Chocolatey and Winget on Windows, the Arch, Fedora and other distribution packages, and building with Go. The lab's machine had no distribution package to try.
- Longer interactive rebases — squash, fixup, drop, edit stops across several commits. Their keys are in the verified hint bars and keybindings lists, and reword, which lazygit performs through the same machinery on one commit, was run; a multi-commit rebase was not driven end to end.
- Deleting a branch. The key is in the verified hint bar; the lab's attempt wandered into the branch's commit list instead (a finding chapter 7 keeps), and the deletion itself was not executed.
- The redo's execution: its confirmation, naming the hard reset and the auto-stash, was captured (t14); the lab did not press Enter on it.
- Cherry-picking (its key appears in a verified sub-view hint bar), bisect, worktrees and submodules (their panel titles are on every screen; neither was exercised), tags, and setting branch upstreams.
- Fetch, pull and push against a network remote, with SSH keys, passphrases or credential helpers. The lab's remote was a folder on the same machine; chapter 12 says what changes and what does not.
- Custom commands and reader-defined keybindings, themes
and icons. One built-in configuration change was verified
(t10); the rest of chapter 14 follows the documented
configuration file, whose defaults the lab printed in
full with
--config. - The mouse. The interface accepts it throughout; the lab drove keys only.
- Editing and opening files from inside lazygit (
eandoare in the verified keybindings list); neither was run, as they hand over to the reader's own editor.
Fixtures are this guide's own and deliberately generic: a walker's notebook of plain-text files (three seasonal walks, a shopping list, one small Python helper) and a picnic plan whose lunch line two branches rewrote at once, all under an invented author. No example is modelled on any real person, organisation or repository, and every repository in the lab was created by the lab, on the lab's machine, for the lab.