18

How can I choose the complete selection in kdiff3 as C (file from remote in kdiff3) instead of changing everything line by line (merge conflicts)? I just want to choose the remote file. Also what is selection A (base file), the remote file checked out locally before new changes?

vkaul11
  • 3,428
  • 7
  • 37
  • 60

1 Answers1

18

Open "Merge" menu item. It has "Choose C Everywhere" option, which selects the edits in remote (C) for all lines. If you just what to use the edits on remote for unresolved conflicts, then you should select "Choose C for All Unresolved Conficts".

enter image description here

Git does 3-way merge. A shows the file from the parent commit of B and C commits. B is the file from the branch you are in, and C is the file from the branch you are merging from.

lemiorhan
  • 1,248
  • 10
  • 18
  • Instead of using kdiff I would rather select conflict (in merge/conflicts window of git extensions) and use context menu items "Choose ..." (better for binary files for ex.) – SalientBrain Dec 06 '16 at 14:10
  • 1
    Why don't I see these options on Linux? (I'm on KDiff3 v1.8.1). – Roy Tinker Jun 16 '20 at 21:03
  • 1
    There is no such option any more – Wang Jun 19 '20 at 21:54
  • Yep there used to be (on Ubuntu Bionic at least), but cannot find on apt kdiff3 for Focal – Patrizio Bertoni Jan 12 '21 at 09:46
  • 2
    These options are not available in KDiff3 v1.8.1, however the shortcuts are still working. Ctrl+Shift+1 is Choose A Everywhere; Ctrl+Shift+2 is Choose B Everywhere. – Frank Feb 03 '21 at 22:05