git stash for a single file code example
Example 1: git stash one file
git stash save -- just_my_file.txt
Example 2: stash a single file
git stash push -m "describe changes to filename.ext" filename.ext
git stash save -- just_my_file.txt
git stash push -m "describe changes to filename.ext" filename.ext