git stash single file command code example
Example 1: git stash one file
git stash save -- just_my_file.txt
Example 2: git stash one file
$ git stash -- filename.ext
Example 3: stash a single file
git stash push -m "describe changes to filename.ext" filename.ext
Example 4: stash specific files git
git stash push -m welcome_cart app/views/cart/welcome.thtml