我已经设置了:
git config --global merge.tool meld
git config --global mergetool.meld.path c:/Progra~2/meld/bin/在"git mergetool“上,它写道:
Hit return to start merge resolution tool (meld):
The merge tool meld is not available as 'c:/Progra~2/meld/bin/'我也尝试过:
结果是一样的。
当我转到C:/Program files (x86)/meld/bin/并运行
python meld该工具将运行。
发布于 2012-10-18 22:57:46
您可以使用完整的unix路径,如:
PATH=$PATH:/c/python26
git config --global merge.tool meld
git config --global mergetool.meld.path /c/Program files (x86)/meld/bin/meld这就是"How to get meld working with git on Windows“中描述的内容。
或者您可以采用"Use Meld with Git on Windows“中描述的包装器方法。
# set up Meld as the default gui diff tool
$ git config --global diff.guitool meld
# set the path to Meld
$ git config --global mergetool.meld.path C:/meld-1.6.0/Bin/meld.sh使用脚本meld.sh
#!/bin/env bash
C:/Python27/pythonw.exe C:/meld-1.6.0/bin/meld $@我不得不这样做:
git config --global merge.tool meld
git config --global mergetool.meld.path /c/Program files (x86)/Meld/meld/meldc.exe请注意,meldc.exe是专门为在
上通过控制台调用而创建的。因此,meld.exe将无法正常工作。
CenterOrbit在the comments for Mac中提到要安装homebrew,然后:
brew cask install meld
git config --global merge.tool meld
git config --global diff.guitool meld发布于 2015-07-15 15:40:50
这对我在Windows8.1和Windows10上很有效。
git config --global mergetool.meld.path "/c/Program Files (x86)/meld/meld.exe"发布于 2015-11-27 18:20:05
meld 3.14.0
[merge]
tool = meld
[mergetool "meld"]
path = C:/Program Files (x86)/Meld/Meld.exe
cmd = \"C:/Program Files (x86)/Meld/Meld.exe\" --diff \"$BASE\" \"$LOCAL\" \"$REMOTE\" --output \"$MERGED\"https://stackoverflow.com/questions/12956509
复制相似问题