Updated: 2021-12-22

For enditing conflict in git, use smerge or ediff.

Smerge

Basic workflow:

With DOOM and hydra:

Ediff

When you are in the file with conflict, type M-x smerge-ediff or M-x vc-resolve-conflicts. You will get 3 windows showing your HEAD and origin/HEAD that you have fetched and the outcome or end product. You can select A or B to select which you can to keep or delete. Use ? to see all the shortcuts to use.

This YouTube video explains it in more detail: Smerge and Ediff

Diff

To use diff directly from git comparing local and origin can be done with:

Else you could use git pull if you aren’t interested to check the changes before merging.

merge  diff  fetch 
comments powered by Disqus