Today I Learned

A Hashrocket project

Ready to join Hashrocket? Find Openings here and apply today.

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