Question: What is the difference between git stash pop and git stash apply?
- git stash pop pushes the topmost commit to the current branch, while git stash apply caches the last commit in the current branch.
- git stash pop applies the topmost entry in the stash to the working files and removes it from the stash, while git stash apply applies the topmost entry in the stash to the working files but leaves it in the stash.
- git stash pop merges the topmost commit to the current branch, while git stash apply merges the last commit in the current branch.
- git stash pop applies the topmost entry in the stash to the working files but leaves it in the stash, while git stash apply applies the topmost entry in the stash to the working files and removes it from the stash.
Answer: The correct answer of the above question is Option B:git stash pop applies the topmost entry in the stash to the working files and removes it from the stash, while git stash apply applies the topmost entry in the stash to the working files but leaves it in the stash.