Quick Notes99 words
Removing data from source control — quick notes
Removing data — quick notes
| Fact | Detail |
|---|---|
git rm + commit | Removes from the current tree only — history keeps it |
| A committed secret | Rotate first. Removal is secondary |
| Large binary | Rewrite history to reclaim space |
| Tools | git filter-repo (successor to filter-branch), BFG |
| Consequence | Every hash changes; everyone must re-clone |
| Prevention | Push protection, .gitignore, pre-commit hooks |
The failure that matters: removing the secret from history and not rotating it. It feels like a fix and isn't.