You're deep in a feature branch with a half-broken build. Production page is on fire and the fix belongs on main.
`git worktree add` gives you a second checkout in a sibling directory — it needs a real second working directory, which this browser engine has not got. The portable fallback is stash → switch → fix → switch back → pop.
Medium · 4 steps · +550 XP
This scenario walks through 4 steps, in order:
Try the terminal first — you learn more by doing. When you want to check yourself, here is the command for each step.
git stash -ugit switch maingit switch feature-deepgit stash popStash-and-switch is the fallback every Git has. When you can use a worktree, prefer it: your half-broken build stays on disk untouched instead of being parked in a stash.