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

Using two-way merge/conflict tool in (n)vim