【发布时间】:2019-06-20 17:43:32
【问题描述】:
谁能帮我弄清楚如何让 Meld 在 Windows 10 的 Git Bash 上工作?我遵循了一些说明,但都没有为我工作。
在我输入这些命令后,什么也没发生:
git config --global diff.tool meld
git config --global difftool.meld.path "/c/Program Files(x86)/Meld/Meld.exe"
git config --global difftool.prompt false
使用git difftool 命令后,我得到这个奇怪的错误:
git config option diff.tool set to unknown tool: merge
Resetting to default...
This message is displayed because 'diff.tool' is not configured.
See 'git difftool --tool-help' or 'git help config' for more details.
'git difftool' will now attempt to use one of the following tools:
opendiff kdiff3 tkdiff xxdiff meld kompare gvimdiff diffuse diffmerge ecmerge p4merge araxis bc codecompare emerge vimdiff
2 files to edit.
我也试过了;
- /c/Progra~2/meld/bin/
- "/c/程序文件 (x86)/Meld/"
- "c:/程序文件 (x86)/Meld/"
我的配置文件:
[user]
name = user
email = email@sample.com
[merge]
tool = meld
[mergetool "meld"]
cmd = meld --auto-merge \"$LOCAL\" \"$BASE\" \"$REMOTE\" --output \"$MERGED\" --label \"MERGE (REMOTE BASE MY)\"
trustExitCode = false
[mergetool]
prompt = false
keepBackup = false
[diff]
guitool = meld
tool = meld
[difftool "meld"]
cmd = meld \"$LOCAL\" \"$REMOTE\" --label \"DIFF (ORIGINAL MY)\"
path = C:/Program Files(x86)/Meld/Meld.exe
[difftool]
prompt = false
【问题讨论】:
标签: windows bash git user-interface meld