How to stash only some files?

Since Git 2.13 , we’re able to stash only some specific files from your working tree. 🙏🏻

In order to do that:

git stash [--patch] -- {files...} # or
git stash push [--patch] {files...}

You may also like...

How to remove a Brew package and all its dependencies?