Stash untracked files in git
Git allows you to stash untracked files with the --include-untracked or -u option:
git stash -u
Git also has an --all or -a option for stash that will stash both untracked and ignored files:
git stash -a
Tweet