DevOps Interview DropBeginner TierScenario+10 XP on read
A developer started a feature branch from an outdated main. How would you fix it?
Core Summary
Fetch, then rebase the branch onto origin/main so the work replays on current code. Rebase is right while the branch is private; if it's been pushed and others use it, merge main in instead so you don't rewrite shared SHAs.
Hints
Hint 1: Rebase replays your commits on a new base
Hint 2: Rebase changes every commit SHA on the branch
Hint 3: The fix for the general case is shorter-lived branches
Reported in interviews at Shopify, Stripe