Free through lesson 3

Getting Started with lazygit

From reading the panels and staging in fine detail to rewriting commits, interactive rebase, branches and push, cherry-pick and stash, reflog and undo, and config.yml and customCommands. Over 20 lessons you get to where you can work with git quickly, safely, and in ways you can undo. Keys come from the official tables for lazygit 0.66.3, git output was produced in a practice repository, and you can check settings with Python right in your browser.

about 2.5 hours in total (estimate)

Curriculum

The 20 lessons are split into 5 chapters. We recommend going in order from chapter 1, but feel free to dip into whatever catches your interest. Note: lazygit doesn't run inside the browser, so try the keys in your own terminal, in a practice repository. The content matches lazygit 0.66.3 (November 2026). Keys can change between versions, so press ? to see the keys for your version. The Python examples run right in your browser.

Chapter 1 — Getting Started with lazygit (lessons 1–4)

Install lazygit, get used to how its screen is laid out and how to move around, and learn to read changed files and diffs. By the end you'll tell changes apart at three levels: file, hunk, and line.

Chapter 2 — Staging and Committing (lessons 5–8)

Learn to split staging by file, hunk, and line, write and fix commits, and read history and the graph. At the end, you'll rewrite an interactive rebase todo in Python and see how lazygit's keys reach git.

Chapter 3 — Branches and Remotes (lessons 9–12)

Learn to create and switch branches, combine them with merge and rebase, and push and pull with remotes, all safely with lazygit's keys. To finish, you'll tune how diffs are shown and how config files layer, and write a model that layers config.

Chapter 4 — Undoing and Rescuing (lessons 13–16)

Learn to copy commits across branches with cherry-pick, set work aside with stash, and step back one action at a time with undo and redo, which read the reflog. At the end, you'll build a model that predicts where each press of z takes you, straight from the reflog.

Chapter 5 — Making lazygit Your Own (lessons 17–20)

Rebind keys, add your own commands with customCommands, and learn about worktrees, bisect and the operations that throw work away. You finish by writing a validator that checks customCommands settings.

Once you finish all 20 lessons, go deeper into how git works in Git & GitHub for Beginners, keep your GitHub work in the terminal with Getting Started with GitHub CLI (gh), or pick up another terminal tool in Getting Started with Yazi. Membership unlocks every course.