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...

Cleaning up not-used Docker images/containers/volumes