gitmeldgit-difftool

Configuring git difftool


I'm using git 2.18.0. In ~/.gitconfig section [alias] I have diff-tool alias configured like this:

meld = difftool -y --tool=meld

Alas, git meld produces diff-style results instead of launching meld. Moreover, spelling it out on the command line git difftool -y --tool=meld also produces diff-style output. On the other hand, launching meld from command line is successful.

Could you suggest what may be wrong?


Solution

  • Make sure you have something to the effect of the following in you .gitconfig and get rid of the alias:

    [diff]
        tool = meld
        guitool = meld
    [difftool]
        prompt = false
    [difftool "meld"]
        path = /usr/bin/meld