I have checked out the various questions on this. The first provides a huge question and answer (relevant? not sure) and the second provides a wrong answer as best answer.
I have a branch called great-use-this. I have another branch called master. I want to merge great-use-this into master, and avoid auto-merging conflicts.
What is the simplest and easiest way to do this?
Note: I have actually figured this out (using a third branch and ours, but this would be good to have on SO anyway.
Yes, creating a third branch and doing a
merge -s oursis one solution.But You will find the all “let’s not advertised any “theirs” merging strategy” here.
Between replacing your work with one other branch work, or simply getting rid of the current work and replacing it completely by the other one, Junio C. Hamano (main Git Maintainer) prefers the second approach: