Git Reference

The Git Cheat Sheet Every Developer Keeps Open

Every command you actually use — organised by workflow, not alphabet. Branch, merge, rebase, stash, reset and push with confidence. Stop context-switching to Google mid-commit.

$9
One-time payment · Instant PDF download
📄 PDF format ⚡ Instant download 🖨️ Print-ready ♾️ Keep forever
git-cheat-sheet.pdf
SETUP & CONFIG
git config --globalSet global options
git initInit new repo
git clone <url>Clone repository
BRANCHING
git branch <name>Create branch
git checkout -bCreate & switch
git merge <branch>Merge branch
UNDOING
git reset HEAD~1Undo last commit
git stashStash changes
git revert <hash>Safe revert

What's inside the Git Cheat Sheet

8 sections covering every part of a real Git workflow — from first commit to advanced operations.

⚙️

Setup & Configuration

Global config, user settings, aliases and editor config so Git behaves the way you want.

  • git config — global, local, system
  • User name & email setup
  • Creating useful aliases
  • SSH key references
📁

Creating & Cloning Repos

Start fresh or pull down an existing project — every option covered.

  • git init with options
  • git clone (HTTPS & SSH)
  • Shallow clones
  • Bare repositories
📦

Staging & Committing

Everything between editing a file and pushing a commit — the part you do 50 times a day.

  • git add (all variations)
  • git commit with flags
  • git amend
  • git stash (save, pop, apply, list)
🌿

Branching & Merging

Branch management and merge strategies — the heart of collaborative Git.

  • Create, list, rename, delete branches
  • Merge with strategies (ff, no-ff, squash)
  • Rebase (interactive & standard)
  • Cherry-pick commits
🌐

Remote Operations

Push, pull, fetch and manage multiple remotes without confusion.

  • git remote (add, remove, rename)
  • git push with all flags
  • git pull vs git fetch
  • Tracking branches
↩️

Undoing Changes

The commands that save you when things go wrong — and they will.

  • git reset (soft, mixed, hard)
  • git revert (safe undo)
  • git restore & git clean
  • git reflog (the safety net)
🔍

Inspection & History

See what happened, who changed what, and why things broke.

  • git log (all formatting options)
  • git diff (staged, unstaged, between branches)
  • git blame & git show
  • git bisect for bug hunting
🚀

Advanced & Power Commands

The commands that separate experienced developers from the rest.

  • Interactive rebase (-i)
  • Submodules basics
  • git worktree
  • Tags & releases

Who this cheat sheet is for

  • Developers who keep Googling the same Git commands mid-workflow
  • Junior developers learning Git branching strategies and rebasing
  • Backend and frontend devs switching between multiple repos daily
  • Freelancers who need a fast, offline Git reference on client machines
  • Anyone who's ever typed git reset and immediately regretted it

What you get

📄
PDF file
High-resolution, print-ready PDF. Works on any device.
Instant access
Download immediately after purchase via Gumroad.
🖨️
Print-optimised
Designed to look perfect on A4 or US Letter paper.
♾️
Yours forever
One payment. No subscription. Download again any time.
Instant Download
$9
One-time payment · PDF · No subscription

Get the Git Cheat Sheet now

Stop Googling git commands. Keep the answer open instead.

Buy on Gumroad →