git stash in single file code example
Example 1: aad a single file to stash
git stash push -m welcome_cart app/views/cart/welcome.thtml
Example 2: how to apply changes in a single file from stash
git restore -s stash@{0} -- <filename>
git stash push -m welcome_cart app/views/cart/welcome.thtml
git restore -s stash@{0} -- <filename>