2

The difference between git stash pop and git stash drop?

Both are removing the stash then what's more?

vijay
  • 493
  • 5
  • 19
  • Here is the official documentation for `git stash` https://git-scm.com/docs/git-stash – YoannFleuryDev Jun 22 '17 at 10:43
  • Possible duplicate of [Difference between git stash pop and git stash apply](https://stackoverflow.com/questions/15286075/difference-between-git-stash-pop-and-git-stash-apply) – Trevor Boyd Smith Jul 19 '18 at 15:21

1 Answers1

8

git stash pop removes the top stashed state and apply it on top of the current working tree. On the other hand, git stash drop just removes that state, not applying it.

Alberto Trindade Tavares
  • 10,056
  • 5
  • 38
  • 46