Git · Junior · Question 33 of 75
What is the difference between git stash pop and git stash apply?
- 1
popapplies the oldest stash;applythe newest - 2
popworks only on the branch the stash came from - ✓Correct answer:
popapplies and removes the stash;applykeeps it
Explanation
If applying causes conflicts, pop keeps the stash anyway so nothing is lost. apply is handy when you want the same changes on several branches.