git stash changes to one file code example
Example 1: git stash one file
git stash save -- just_my_file.txt
Example 2: how to apply changes in a single file from stash
git checkout stash@{0} -- <filename>
git stash save -- just_my_file.txt
git checkout stash@{0} -- <filename>