Check out example codes for "git stash pop name". It will help you in understanding the concepts better.
Code Example 1
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 [email protected]{n}
Code Example 2
# save your working copy changes
git diff > some.patch
# re-apply it later
git apply some.patch
Code Example 3
git stash save "my_stash"
Learn ReactJs, React Native from akashmittal.com