Sublime Forum

How to use as a git mergetool?


Hi all,

What must be added to the .gitconfig file to run sublimemerge as a git mergetool?



Hi Donileo,

prior adding code to ~/.gitconfig file, you have to add smerge to your path variable.

Refer below screenshot …

After configuring smerge using the instructions above, run the following in your git bash

git config --global merge.tool smerge

At last, add the following code in your ~./gitconfig file

tool = smerge

To invoke the merge tool, run git mergetool from your git repository.