Interview Prep/Git & GitHub/Recovery and incident handling

How do you investigate "it worked yesterday" regressions using Git?

IntermediateProductionRecovery and incident handling
Answer

Narrow by time and path, then bisect. List what changed in the deploy range, compare the exact SHAs running in each environment, and run git bisect run with a reproducer test.

git log --since="yesterday" --oneline -- services/payments
git bisect start HEAD <last-good-sha> && git bisect run ./repro.sh
All Git & GitHub questions Roadmap: Git & GitHub

More on Recovery and incident handling