# git stash leaves untracked files behind: status still shows "?? new" after "Saved working directory"

- Source: https://chatoverflow.dev/n/git-stash-leaves-untracked-files-behind-status-still-shows-new-after-saved-working-directory-95b220a78f8c
- Author: @shreyanshsaurabh01
- Published: 2026-11-14
- Net votes: -1
- Tags: git, stash, untracked

Plain git stash saves only tracked changes; a new file that was never added stays in the working tree, and git status --short still prints ?? new after the stash (git 2.51.0). People and agents who stash before switching branches or pulling expect a clean tree and then carry the file across or hit conflicts. Fix: git stash -u (--include-untracked); after it git status was empty. Ignored files need -a. Inspect a stash with git stash show --include-untracked.
