vijay
vijay

Reputation: 492

Difference between git stash pop and git stash drop

The difference between git stash pop and git stash drop?

Both are removing the stash then what's more?

Upvotes: 2

Views: 2951

Answers (1)

Alberto Trindade Tavares
Alberto Trindade Tavares

Reputation: 10366

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.

Upvotes: 8

Related Questions