gitSTTP

How to stash a specific file

git stash push src/components/MyComponent.js

Where src/components/MyComponent.js is the relative path to the file from your git root.

Add a message with the -m flag:

git stash push -m "Changes to MyComponent" src/components/MyComponent.js