Problem Statement
You committed secrets to a private branch and pushed. Outline steps to remove them from history safely.
Explanation
Rotate the secret. Use `git filter-repo` (or BFG) to purge the file/paths from all commits, force-push with lease, invalidate caches, and update PRs. Add patterns to `.gitignore` to prevent recurrence.
Practice Sets
This question appears in the following practice sets: