I\'ve been using git stash pop for quite some time. I recently found out about the git stash apply command. When I tried it out, it seemed to work
Git Stash Pop vs apply Working
If you want to apply your top stashed changes to current non-staged change and delete that stash as well, then you should go for git stash pop.
# apply the top stashed changes and delete it from git stash area.
git stash pop
But if you are want to apply your top stashed changes to current non-staged change without deleting it, then you should go for git stash apply.
Note : You can relate this case with
Stackclasspop()andpeek()methods, where pop change the top by decrements (top = top-1) butpeek()only able to get the top element.