Check out a new branch and apply a stash there.
Section: Stash Workflows
Create a branch from a stash
bash
bash
git stash branch recovered-wip stash@{0}Explanation
Very useful when a stash no longer applies cleanly on the current branch but should become dedicated work.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Stash Workflows
Stash unstaged changes only
Keep staged changes in the index and stash the rest.
List stashes with diffstat
See stash entries and a compact summary of their changes.
Show full patch for a stash
Inspect the actual diff stored in a stash entry.
Create worktree and new branch together
Add a worktree and create a new branch from current HEAD.