Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

multiple git stashes

You can get a list of all stashes with

git stash list
which will show you something like

stash@{0}: WIP on dev: 1f6f8bb Commit message A
stash@{1}: WIP on master: 50cf63b Commit message B
If you made two stashes, then just call git stash pop twice. As opposed to git stash apply, pop applies and removes the latest stash.

You can also reference a specific stash, e.g.

git stash show stash@{1}
or

git stash apply stash@{1}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #multiple #git #stashes
ADD COMMENT
Topic
Name
5+8 =