git – How do you stash an untracked file? – Stack Overflow

The new file will remain untracked in your working directory. git stash –include-untracked or git stash -u will save both your modified tracked files and any untracked files in the stash, allowing you to retrieve them later using git stash apply or git stash pop.

Read More