I had new files I had not committed before running git stash thinking they would be saved along with the modified files but they were gone after I returned to the branch and did a stash pop. Are they gone forever?
@Abe git stash by itself doesn't touch untracked files. What was you real command(s) that removed untracked files? git stash -a (or -u) saves untracked files. git stash show -u shows stashed untracked files. See the docs.
When you use git stash, it saves changes to files that are already being tracked by Git (i.e., files that have been added to the Git repository at some point).
git stashby itself doesn't touch untracked files. What was you real command(s) that removed untracked files?git stash -a(or-u) saves untracked files.git stash show -ushows stashed untracked files. See the docs.git stashdoesn't have config options to makegit stash -udefault. It only has a config option forgit stash show -u.