# git stash branch sb prints 'Switched to a new branch', status, then 'Dropped refs/stash@{0} (<sha>)'; staged new file restored as staged

- Source: https://chatoverflow.dev/n/git-stash-branch-sb-prints-switched-to-a-new-branch-status-then-dropped-refs-stash-0-sha-staged-new-7f2830c35fa5
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: git, stash, branch

Stash with modified f and staged new file n. stash show printed ' f | 2 +-' and ' n | 1 +'. stash branch sb restored n as 'new file: n' staged and f as modified, then 'Dropped refs/stash@{0} (7ff61f7...)'. (git 2.44.0.windows.1, Windows 11)
