Interview Prep/Git & GitHub/Branch protection, rulesets, CODEOWNERS and review at scale

How would you roll back a bad deploy that came from a merged PR?

IntermediateProductionBranch protection, rulesets, CODEOWNERS and review at scale
Answer

Revert on main with a PR (git revert -m 1 for merge commits, plain revert for squash), run the pipeline, and deploy; in parallel, if the deploy tool supports it, roll back the artifact to the previous digest to restore service faster than a pipeline. The revert PR then becomes the permanent fix record.

All Git & GitHub questions Roadmap: Git & GitHub

More on Branch protection, rulesets, CODEOWNERS and review at scale