git stash a single file command 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
Example 3: aad a single file to stash
git stash push -m welcome_cart app/views/cart/welcome.thtml
Example 4: how to apply changes in a single file from stash
git restore -s stash@{0} -- <filename>