0

I need to merge two branches in Git, but I have to be really careful regarding all files being merged. I need to keep some of them even if they are changed in second branch and sometimes I need to keep a part of them only. The easiest way would be to do a forced merge with mergetool for all files, not only those with conflicts. Is it possible?

Spook
  • 25,318
  • 18
  • 90
  • 167

1 Answers1

1

There's this answer How to prevent an automerge using git? that suggests to use a difftool on the two branches before even attepmting to merge. Commit the changes on all the files that you need. Then do a merge.