git stash save message code example
Example 1: stash with message
git stash save “Your stash message”.
Example 2: git stash save name
$ git stash push -m "john-hancock"
$ git stash apply stash^{/john-hancock}
Example 3: git remove first stash
git stash drop 0
Example 4: git stash save name
# save your working copy changes
git diff > some.patch
# re-apply it later
git apply some.patch
Example 5: git save to stash
git stash save "name to describe stashed content"