Cheatsheet Pages / Git Cheatsheet

How to clean up stale remote branches in Git — git fetch --prune

Teammates deleted branches on the remote but your local list still shows them.

git fetch --prune   # update remote refs, clean up deleted branches

Good to know

Download remote changes without merging; --prune removes local tracking of deleted remote branches.

Git Cheatsheet one-page card — 30 daily and rescue commands
The full one-page card — Git Cheatsheet. Get the complete cheatsheet on GitHub