Answers for "i lose my git stash why"

1

how to recover from git stash

# List your current stashes
git stash list 
# If there is only one stash you can switch to it with
git stash pop
# If there are multiple stashes you choose by typing the name at the end i.e.
git stash pop stash@{0}
Posted by: Guest on December-01-2021
0

retrieve git stash

git stash save "optional message for yourself"
git stash list
git stash show -p stash@{0}
git stash apply stash@{0}
git stash drop STASH-NAME
git stash clear
Posted by: Guest on May-07-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language