I use git stash more often than I care to admit. Typically, I use it to temporarily stash some debugging code while switching branches, or to stash some minor unfinished changes before performing a rebase. And usually, git stash or git stash save <message> is enough.

But recently, I wanted to stash only one file's worth of code changes while discarding the rest, and I didn't know how to do it. So for future reference:

git stash push -- <path_to_file>