i am wondering how can i take the stashed version of the files.
say i have a file called foo.c
with some uncommitted changes on master and i would like to update the current branch from remote. Remote has also modified foo.c
My current approach is to:
stash the current changes on master
git pull --rebase
this goes well.
but when i do a:
git stash pop
there will be a merge conflict in foo.c
so is there a way to take stashed version of foo.c
?
i.e similar to what can be done with pulling:
git pull -s recursive -X theirs --rebase
so what i am looking for is:
git stash pop "-X theirs"
that would replace the pulled version of foo.c with the stashed version
tnx for the help