Say I have one.txt
and two.txt
in a remote repo and I've been doing some work locally and haven't staged them. Then I find out another team member made some necessary changes to those two files and pushed them to the remote repo. I need his changes, so I go git stash
, git pull
, git stash pop
.
But I get 2 merge conflicts when I did the stash pop
. one.txt was auto merged and two.txt had to be done manually. For the manual one, I said "take both" in one area, and the other I kept mine). Then I staged the result of the merge via git add
.
git status
now shows both files are ready to be committed.
Will I have a problem pushing? In other words, does the checking in of a merge (in the context of the stash/pull/pop) have to match what the co-worker pushed? Also, am I supposed to do something with the stash after/when there's a conflict?
I'm trying to avoid a merge conflict when I push to the remote repo, so I'm worried about getting into a weird state.