Last Updated: September 27, 2019
·
5.051K
· kb

git stash untracked file(s)

A newish (and handy) git feature I came across not that long ago is the ability to stash untracked files without having to stage them first. All you have to do is add the -u flag onto the stash command.

git stash -u

This feature became available as of git version 1.7.7.