🏆 I provide private lessons on Emacs, Linux, and Life in general: https://protesilaos.com/coach/. Lessons continue throughout the year.

Emacs: use SMERGE and EDIFF to resolve file conflicts

Raw link: https://www.youtube.com/watch?v=9S2pMZ6U5Tc

In this video I run a real-world scenario of a failed merge in a Git-controlled project. The idea is that one branch cannot be merged cleanly into the other because there are conflicting differences between a few files. Git cannot choose on its own, so it is leaving things to us.

This is where smerge-mode and ediff can into the picture. Both tools are built into Emacs and can be used in tandem with Magit or the standard Version Control framework (VC). The workflow is practically the same.

Check my dotemacs for more on these.