CHEAT SHEET · 247 COMMANDS · LIVE + REFERENCE

Every command, one tap away.

Tap a card to open it, then press Run it. The command runs in the same practice sim as the chapters, and the three areas update live. Copy it when you are ready to use it for real.

SafeCarefulCan lose work

Most used

tap to jump

Start

Turn a folder into a repo and tell Git who you are

Save work

See changes, stage them, snapshot them

History and compare

Read the past and compare any two versions

Branches

Work on an idea without touching main

Merge and rebase

Combine branches or copy single commits

Remotes and sync

Link to GitHub, push, fetch and pull

Stash

A shelf for half-done work

Undo

Take things back, from gentle to drastic

Ignore and remove

Keep files out of Git, or stop tracking them

Tags and releases

Give important commits a name

Sign in to GitHub

Logins, SSH keys and the gh sign-in

GitHub CLI (gh)

Repos, pull requests, issues and releases from the terminal

Power tools

Submodules, worktrees, bisect and housekeeping

Terminal basics

The shell commands under every Git command

About the practice sim

Cards marked Runs live execute in the practice sim, so you can try them safely. The others are Reference cards: they show what you will see on a real computer. Commands that talk to GitHub need an internet connection and a sign-in, so they are reference only. Always run git status before anything marked Can lose work.