You must remove a customer's personal data accidentally committed to a public repo. What are the steps?
AdvancedProductionRecovery and incident handling
Answer
Treat it as a data breach: notify the privacy team, take the repo private if possible, rewrite history with git filter-repo --replace-text or --path ... --invert-paths, force-push all refs, ask GitHub support to purge cached refs and PR diffs, and make sure forks are handled via a DMCA or support request. Document timeline for regulators if required.
More on Recovery and incident handling
Someone force-pushed over main and 12 commits vanished. How do you recover?IntermediateAfter recovery, what do you change so a force-push to main cannot happen again?AdvancedA bad migration commit was deployed. Walk through your response in the first 15 minutes.IntermediateHow do you recover a deleted repository or branch on GitHub?IntermediateHow do you find who or what pushed a specific commit to a protected branch?AdvancedCI is red on main after a merge. What is your policy?Intermediate