A secret was committed and pushed. What do you do first?

AdvancedConceptGit
Answer

Rotate the secret first, because it is already compromised. Then purge it from history with git filter-repo and force-push, and ask GitHub support to clear cached views if needed.

All Real-World Interview questions Roadmap: Interview readiness

More on Git