Sublime Forum

How to use as a git mergetool?

#1

Hi all,

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

0 Likes

#2

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

[merge]
tool = smerge

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

0 Likes