The scenario every developer knows: you're deep in a feature, 15 files modified, half-working tests, and the production alert hits. You need to fix a bug on main, now.

The standard advice: git stash. Switch branches. Fix the bug. Come back. Unstash. Pray nothing conflicts.

There's a better way, and it's been in Git since 2015.




Meet git...