DEV Community

Discussion on: Learn the hidden feature in Git - Stash

Collapse
 
yuvgeek profile image
Yuvaraj

You are correct. But, when we have multiple stash and If one would like to apply the stash which is in the middle, then pop doesn't solve it.

Collapse
 
branislavtotic profile image
Branislav Totic

From git version 2.11 you can do git stash pop stash@{n}, or even better
you can just use index instead stash@{n} like git stash pop n.

Collapse
 
lucassperez profile image
Lucas Perez

Or when we want to stash specific files, we can't simply git stash too, as it will stash everything!

Thread Thread
 
yuvgeek profile image
Yuvaraj

Yesss!

Some comments have been hidden by the post's author - find out more