git config --global mergetool.bc3 "\"c:/program files (x86)/beyond compare 3/bcomp.exe\" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\""
git mergetool
/usr/lib/git-core/git-mergetool--lib: line 116: bcompare: command not found
这非常奇怪,因为./.git/config和~/.gitconfig看起来都是正确的。两者都没有列出bcompare的条目。git可以从.git/config或~/.gitconfig以外的任何地方读取或存储配置
发布于 2011-09-16 01:48:02
看起来和this guy有同样的问题。看起来bc3是一个内置的工具名称,git不允许该名称被覆盖。请尝试使用bc3以外的名称。
我用的是"BeyondCompare3“
[mergetool "BeyondCompare3"]
path = C:/Program Files/Beyond Compare 3/bcomp.exe
cmd = \"C:/Program Files/Beyond Compare 3/bcomp.exe\" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"发布于 2011-09-16 02:27:37
如果需要覆盖合并工具的路径,只需设置变量mergetool.<tool>.path。
可以使用mergetool.<tool>.cmd指定自定义合并工具(对于Beyond Compare 3,这不应该是必需的),但是mergetool.<tool>形式的变量对git mergetool没有任何意义。如果文档中指示您尝试这样做,也许您可以说出在哪里,这样就可以解决这个问题。
https://stackoverflow.com/questions/7435002
复制相似问题