我尝试将 p4merge 设置为我的合并工具,但我似乎无法让它工作。这是我的命令:
git config --global merge.tool p4merge
git config --global mergetool.p4merge.path "C:/Program Files/Perforce/p4merge.exe"
git config --global mergetool.p4merge.cmd "p4merge.exe \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\""
我还尝试安装便携式版本的 git并从windows cmd 提示符运行命令,但我仍然收到类似的错误。
这里有什么想法吗?我难住了。
编辑
奇怪的是,在我通过 git bash 设置 p4merge 但失败后,我尝试在 Visual Studio 的 Team Explorer 中进行合并,它启动了 p4merge (tableflip)。我想通过 VS 启动的命令类似于 git bash,但我不确定如何将两者关联起来。