Trying to understand git behavior.
When I execute git pull
I get a warning
error: Your local changes to the following files would be overwritten
by merge:
foo/bar
Please, commit your changes or stash them before you can merge. Aborting
But if I git stash save
, git pull
, and then git stash pop
, the changes are applied without any problem.
Auto-merging foo/bar
...
Why can't/won't git pull
do the same thing?