Quick Notes99 words

Removing data from source control — quick notes

Removing data — quick notes

FactDetail
git rm + commitRemoves from the current tree only — history keeps it
A committed secretRotate first. Removal is secondary
Large binaryRewrite history to reclaim space
Toolsgit filter-repo (successor to filter-branch), BFG
ConsequenceEvery hash changes; everyone must re-clone
PreventionPush 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.

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free