18

Following an attempted git merge on the commandline, my file now has standard conflict markers in it which emacs has helpfully reloaded (reverted?) in the buffer.

How do I start some kind of merging mode to resolve the conflict? Can I get seperate buffers showing left/right/merged versions of the file like when I ediff-files?

(emacs-prelude v24.4 on a Mac)

daiboo
  • 181
  • 3
  • All three of these look good. Thank you! I will make a conflicted file, try each answer, and report back about my experience. – daiboo Dec 22 '14 at 01:17

3 Answers3

17

If you use magit, you can press e at the unmerged file in magit status buffer (started by pressing M-xmagit-statusRET) to start ediff session for resolving the conflicts

Iqbal Ansari
  • 7,468
  • 1
  • 28
  • 31
12

You can use the minor mode smerge-mode to move between conflicts and resolve them. You can open ediff to resolve conflicts with C-c ^ E while in smerge mode.

Drew
  • 75,699
  • 9
  • 109
  • 225
Joakim Hårsman
  • 719
  • 5
  • 11
11

M-x vc-resolve-conflicts RET

I bind it to C-xv<

phils
  • 48,657
  • 3
  • 76
  • 115