how to stash one file in git code example
Example 1: how to apply changes in a single file from stash
git checkout stash@{0} -- <filename>
Example 2: stash a single file
git stash push -m "describe changes to filename.ext" filename.ext
Example 3: how to apply changes in a single file from stash
git restore -s stash@{0} -- <filename>
Example 4: stash specific files git
git stash push -m welcome_cart app/views/cart/welcome.thtml