Someone committed `build/app.dmg` (500MB) two days ago. Clones now take 8 minutes. Need to nuke it from history without losing real work.
filter-repo strips a path from every commit. Force-push, then everyone re-clones.
Hard · 4 steps · +750 XP
This scenario walks through 4 steps, in order:
Try the terminal first — you learn more by doing. When you want to check yourself, here is the command for each step.
git count-objects -vHgit filter-repo --path build/app.dmg --invert-pathsgit gc --prune=now --aggressivegit push --force-with-lease --allAdd a .gitignore + use Git LFS for binaries. Never trust 'I'll delete it later.'