0

There is a conflict when I merge a branch: git merge main.

I want to use main branch changes directly.

when I use VSCode resolve conflict (main branch is on the left, my branch is on the right):

enter image description here

I click "Accept All changes from left" button:

enter image description here

Line 16 of result is my branch!


But I use other git GUI(IDEA, sublime merge, etc) show (main branch is on right, my branch is on left):

sublime merge

I click "taker right" button:

enter image description here

Line 16 of result is main branch!

Why?

VSCode Version:

enter image description here

riskers
  • 178
  • 13

1 Answers1

0

do you using a same merge.conflictstyle? if u do so, the result must be the same,

u can try this,

git config --global merge.conflictstyle diff3
                                        

and do it again in ur command line

git merge xxx
Peter
  • 29
  • 2