I pulled from origin main, and I'm having issues handling conflicts on my branch.
I did the following
git checkout test (name of my branch) git pull origin main It tells me I have conflicts and is asking me to fix conflicts and call git rebase --continue or git rebase --abort.
I get the following error:
Auto-merging .circleci/config.yml
CONFLICT (content): Merge conflict in .circleci/config.yml
error: could not apply 2b7a15bfe61b... fix
I did the following
git checkout --ours .circleci/config.yml git add .circleci/config.yml git rebase --continue but I keep getting this error:
Auto-merging .circleci/config.yml
CONFLICT (content): Merge conflict in .circleci/config.yml
error: could not apply 62df6154b7da... fix
and the cycle continues.
What can I do? I'm in rebase hell
git checkout --ours .circleci/config.ymlandgit add .circleci/config.ymlto resolve the conflict, i.e. choosing one version and discarding the other version.git checkout testfollowed bygit pull origin mainyields the result you expect. In fact,git pullfetches the upstream's branchmainand then merges (or rebases depending on your configs) the branch currently checked out. So, in your case the remote'smainchanges are being applied totest, not your localmain. Is that really what you want?pull.rebaseis configured)git checkout testand thengit pull origin mainshould rebasetestontoorigin/main, shouldn't it?