DEV Community

Discussion on: 10 insanely useful Git commands you wish existed – and their alternatives

Collapse
 
eyarz profile image
Eyar Zilberman

This is why I love the DEV community - you learn something new every day...

Thanks to you, this is what I learned today:
git stash pop is git stash apply && git stash drop. git stash pop applies the top stash and removes it, while git stash apply does the same but leaves the stash in the stack.

Therefore, it is recommended to use $ git stash apply in this use case - I will update the post :)