Cory Knox

Stash untracked changes in a way that git stash reports them

· 56 words · 1 minutes to read
Categories: learnings
Tags: TIL

I’ve learned that you can do git stash -u to stash untracked files as well as tracked files… But nothing will show you those files in the stash by default… Instead, if you do git add <untracked files> and then git stash, they are magically tracked files even if they’re not actually committed to the repository.