Does git stash pop blindly overwrites the local changes or merges them with the local changes?
If it merges, there could be merge conflicts. Is there any way to know in advance, that there would be merge conflicts or not by using --dry-run or some other method?
I could find --dry-run with git fetch and git push but not with git stash pop.
EDIT explaining the problem specifically after few answers -
I have a situation, where I have a git stash that is around a couple of days old. The local branch has been modifed "after" the git stash was done. That means, there is a difference between the local and the stashed files ( all files are tracked and there are no untracked files in either stash or local branch ) .
The problem is that, I guess, once I do a git stash apply, the local changes will be in a conflict state in case of a complicated merge operation and hence cannot be reversed ( as there is no undo of the merge operation ). git checkout wont help, because there were local changes in the local branch. Is my understanding correct?
I wanted to do a dry-run before to see the results before doing a git stash apply. So, before I do anything and cry later, I wanted to find an elegant solution to this problem.