Git Commands Reference

Every Git command that matters, one page per command. Common flags, real examples, and the footguns that trip people up. Modern Git (2.30+) — including the newer switch and restore that replaced overloaded checkout.

Basics

History & Diff

Branching

Remote & Collaboration

Sync (Push / Pull / Fetch)

Inspection

Undo & Recovery

Related references