git stash specific file code example
Example 1: git stash command with name
git stash save "my_stash"
Example 2: git stash apply specific stash
git stash apply "stash@{n}"
or
git stash apply n
Example 3: git stash one file
git stash save -- just_my_file.txt
Example 4: git stash one file
$ git stash -- filename.ext
Example 5: git stash changes to particular file
git stash push <path>
Example 6: aad a single file to stash
git stash push -m welcome_cart app/views/cart/welcome.thtml