git get stashed changes code example
Example 1: git stash apply specific stash
git stash apply "stash@{n}"
or
git stash apply n
Example 2: 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
Example 3: git delete stash
git stash drop stash@{index} // here index will be shown after getting stash list.
Example 4: how to get stashed on git
git stash pop
Example 5: git remove first stash
git stash drop 0
Example 6: git stash contnet
git stash show -p stash@{1}