Rudy’s OBTF Rudolf Adamkovič

Home / Emacs / Magit / Tips


How to resolve merge conflicts

To resolve a conflict directly in Magit, type k on the conflicting file and select which side to keep:

Key Description
k o keep ours
k t keep theirs

This works on hunks too.

Alternatively, type RET to open a file with the Smerge mode enabled.


© 2025 Rudolf Adamkovič under GNU General Public License version 3.
Made with Emacs and secret alien technologies of yesteryear.