Give every project an undo button: Git without memorising a single command
Your AI coder just broke the thing that worked an hour ago, and with Git that's one key to undo. Git is the save-and-undo system behind every project on GitHub, and lazygit puts it all on one screen with single-key shortcuts, so there's nothing to memorise. Practise in a throwaway folder, then use it on anything.
- The 5 panels and a 10-key cheat sheet you can print
- A safety net for AI coding tools: save before they edit, undo in one key if they break something
- Git installed. If
git --versiondoesn't work, do Install anything from GitHub, safely first - Happy opening a terminal and using
cd. The terminal survival kit covers it in 15 minutes - About 21MB of disk space
Install lazygit and tell Git who you are
lazygit is one small program. Git also needs a name to put on your save points, or saving fails.
lazygit is free and open source (MIT licence, over 83,000 stars on GitHub). It doesn't replace Git: it runs the normal Git commands for you and shows you what happened. So check Git is there first:
Terminalgit --versionOutputgit version 2.52.0.windows.1Now tell Git your name and email, before anything else. Every save point is labelled with them, and without them your first save fails. Any name is fine:
Terminalgit config --global user.name "Your Name" git config --global user.email "you@example.com"TipThat email is stored inside every save. If you'll ever put a project on GitHub publicly, use the private "noreply" address GitHub offers in its email settings instead of your real one.Then install lazygit. The quickest way is the one-liner from lazygit's official README:
Windowswinget install -e --id=JesseDuffield.lazygitMacbrew install lazygitClose the terminal, open a new one, and check it works:
Terminallazygit --versionOutputcommit=c5f71581..., build date=2026-10-05T17:12:24Z, build source=binaryRelease, version=0.66.0, os=windows, arch=amd64, git version=2.52.0.windows.1No winget, or rather not install anything?Download the
windows_x86_64.zipfile for the latest version (about 7.5MB, named likelazygit_0.66.0_windows_x86_64.zip) from the official releases page ↗, then unzip it and point thelazygitcommand at it. Change the version number in the first line to match your download:Windows, no installerExpand-Archive $HOME\Downloads\lazygit_0.66.0_windows_x86_64.zip -DestinationPath $HOME\tools\lazygit Set-Alias lazygit "$HOME\tools\lazygit\lazygit.exe" lazygit --versionSet-Aliasonly lasts until you close that window, so run that line again in each new terminal. Nothing on your PC is changed permanently.Tipwinget can be a release behind GitHub. Either version is fine for this mission.
git config --global user.name prints your name, and lazygit --version prints a version number.If it breaks'lazygit' is not recognised + 1 more
'lazygit' is not recognised
Set-Alias line in each new window.