What does the last command print?
$ git status --short M f ?? n.txt $ git stash $ git status --short
- (no output)
?? n.txtM fM fand?? n.txt
By default
Play Git ▸
git stash saves only tracked changes, so the untracked file stays. Use git stash -u to include untracked files.