PDF booklet

Branching, rebasing, recovery, and everyday Git power tools

A practical PDF for developers who already know the basics: modern commands, safe history rewriting, recovery with reflog, and a quick-reference cheat sheet — verified against Git 2.47.

For developers who clone, commit, and push without thinking — and want to be faster and safer when history gets messy.

Buy for $19 Secure checkout · Stripe
The Git Commands Booklet cover
$ git switch -c feature/login
Switched to a new branch 'feature/login'
$ git rebase -i main
Successfully rebased and updated refs/heads/feature/login
$ git reflog
a1b2c3d HEAD@{0}: rebase (finish): ...

Safer history

Rewrite with intention — interactive rebase, fixup, and force-with-lease instead of blind force-push.

Faster recovery

Know when to reset, revert, or dig through reflog so a bad commit is not a lost afternoon.

Everyday power tools

stash, worktree, bisect, blame, and aliases that cut the noise from daily Git.

Peek inside

Three sample pages from the PDF — click any page to view it larger.

Page 9

Branching & merging

git switch, restore, branch, and merge patterns you use every day.

Page 13

Rewriting history safely

Rebase, interactive rebase, fixup commits, and force-with-lease.

Page 17

Undoing & recovery

reset, revert, reflog, and clean when something goes wrong.

What's inside

  • Setup & config — identity, sensible defaults, includeIf
  • Everyday workflow — status, add -p, commit, deliberate pull
  • Branching & merging — switch, restore, branch, merge
  • Rewriting history safely — rebase, fixup, cherry-pick, force-with-lease
  • Undoing & recovery — reset, revert, reflog, clean
  • Inspecting history — log, ranges, diff, show, range-diff
  • Stashing & worktrees
  • Remotes, tags, bisect, blame, grep
  • Handy aliases & a recommended ~/.gitconfig
  • Quick-reference cheat sheet

Edition 1 · November 2026 · Verified against Git 2.47.

After purchase

You'll get an immediate download on the success page and the same link by email. Links stay valid for 24 hours. Team use inside your org is fine — please don't resell the PDF.

Questions? Reply to the purchase email or reach out via Developer Service Blog.

Who am I

Nuno Bispo

Nuno Bispo

Senior Software Engineer and Solutions Architect with over 15 years of experience building production systems across insurance, banking, and aviation. I specialize in Python, Django, FastAPI, and AI integrations.

I share that work through tutorials on Real Python, articles for Unstract, books on Leanpub, and Developer Service Blog. This booklet collects the Git commands I reach for when branching, recovering from mistakes, and keeping history clean with a team.