Git Diff and Meld on Windows

后端 未结 5 1233
闹比i
闹比i 2020-12-13 21:03

Has anyone ever made Meld work with Git on Windows? I am trying to make it work and I have no success.

I have Meld installed and when I call it from the command lin

5条回答
  •  無奈伤痛
    2020-12-13 21:19

    For Windows 7 (or even other versions of windows), add these lines in the .gitconfig file.

    [diff]
        tool = meld
    [merge]
        tool = meld
    [difftool "meld"]
        path = C:/Program Files (x86)/Meld/meld.exe
    [mergetool "meld"]
        path = C:/Program Files (x86)/Meld/meld.exe
    

    Note that there is no need to use " for the path even if it includes spaces. Just remember to use forward slashes instead of backward slashes.

提交回复
热议问题