Stashing untracked files in Git

Scenario

I have created new files in the process of spiking an implementation, and want to stash them to prevent “Untracked files” from appearing in git status.

Solution

Use git stash save -u.

Written on March 15, 2016 by ryandevilla