git stash apply item
git stash apply stash@{index}
git stash apply specific stash
git stash apply "stash@{n}"
or
git stash apply n
git stash save name
$ git stash push -m "john-hancock"
$ git stash apply stash^{/john-hancock}
git stash pop name
git stash save "my_stash"
// Where "my_stash" is the stash name.
// Some more useful things to know: All the stashes are stored in a stack. Type:
git stash list
// This will list down all your stashes.
// To apply a stash and remove it from the stash stack, type:
git stash pop stash@{n}
git stash apply specific file
git diff stash^! -- path/to/relevant/file/in/stash.ext perhaps/another/file.ext > my.patch
git apply < my.patch
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us