git stash list
This will list down all your stashes.
git stash push -m "my_stash"
Where "my_stash" is the stash name.
To apply a stash and remove it from the stash stack, type:
git stash pop stash@{n}
To apply a stash and keep it in the stash stack, type:
git stash apply stash@{n}
Where n is the index of the stashed change.
Notice that you can apply a stash and keep it in the stack by using the stash name:
git stash apply my_stash_name
git stash push -m "my_stash"
#Then list the stashes:
git stash list
#And apply it:
git stash apply stash@{n}
git stash push -m "my_stash"
#Then list the stashes:
git stash list
#And apply it:
git stash apply stash@{n}
git stash push -m "my_stash"
#Then list the stashes:
git stash list
#And apply it:
git stash apply stash@{n}
git stash push -m "my_stash"
#Then list the stashes:
git stash list
#And apply it:
git stash apply stash@{n}
git stash push -m "my_stash"
Then list it:
git stash list
And apply it:
git stash apply stash@{n}
git stash push -m "my_stash"
#Then list the stashes:
git stash list
#And apply it:
git stash apply stash@{n}
git stash push -m "stash-name"