Someone committed `build/app.dmg` (500MB) two days ago. Clones now take 8 minutes. Need to nuke it from history without losing real work.
Untracking the file stops it growing; the 500MB already in history only goes away with git-filter-repo or BFG, which run outside this browser.
Hard · 5 steps · +750 XP
This scenario walks through 5 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 rm --cached build/app.dmggit commit -m "chore: stop tracking build/app.dmg"git gc --prune=now --aggressivegit push origin main`git rm --cached` + .gitignore stops the bleeding — every future clone stops re-downloading new copies. The existing blob stays in history until someone runs git-filter-repo or BFG offline. Use Git LFS for binaries and never trust 'I'll delete it later.'