Git Diff and Meld on Windows

后端 未结 5 1246
闹比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:25

    I tried several variations of trying to set the path with git config to no avail. Since I want to use Meld from the Git Bash console window, what did work was to export the path to the Meld directory, restart the Bash shell and lo & behold git difftool --tool-help and git mergetool --tool-help now recognize Meld, and I can choose it as my preferred tool.

    .profile

    export PATH=/c/Program\ Files\ \(x86\)/Meld/:$PATH
    

    .gitconfig

    [merge]
        tool = meld
    [diff]
        tool = meld
    

提交回复
热议问题