Stash and New Files
You run git stash and switch branches, but a new file you created is still there. Why?
git stash
Choose one answer
By default, stash only saves tracked files, not new ones.
Git never stashes files larger than 1 MB.
The stash failed, because new files must be committed first.
Switching branches restores new files from the most recent stash entry automatically.