git get from stash code example

Example 1: 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 2: git stash example

git stash push -m "message" // use for code added in statsh 
git stash list // use for check stash list
git stash apply stash@{index}

Example 3: how to get stashed on git

git stash pop

Example 4: how to get stashed on git

git stash pop or 
git stash apply

Example 5: git save to stash

git stash save "name to describe stashed content"