Skip to content

Instantly share code, notes, and snippets.

@caldwell
Last active November 22, 2020 20:21
Show Gist options
  • Save caldwell/5026687 to your computer and use it in GitHub Desktop.
Save caldwell/5026687 to your computer and use it in GitHub Desktop.
~/.gitconfig snippet for using Emacs ediff with git mergetool via emacsclient.
[merge]
tool = ediff
[mergetool "ediff"]
cmd = emacsclient -c -a \"\" --eval \"(ediff-merge-files-with-ancestor \\\"$LOCAL\\\" \\\"$REMOTE\\\" \\\"$BASE\\\" nil \\\"$MERGED\\\")\"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment