You stashed WIP while on `main`. It was actually feature work. You want it on a new branch instead.
`git stash branch <name>` creates a branch from the stash's parent and applies it.
Medium · 2 steps · +500 XP
This scenario walks through 2 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 listgit stash branch feature/from-stash`stash branch` is the cleanest way to recover from a misplaced stash.