我尝试将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 命令提示符上运行命令,但仍然遇到类似的错误。
有什么想法吗? 我很困惑。 编辑 Strangely enough, 在我通过git bash设置p4merge失败后,我尝试在Visual Studio的Team Explorer中合并,结果它启动了p4merge(tableflip)。我想通过VS启动的命令类似于git bash,但我不确定如何将两者相关联。
编辑2:这是我的
git status
显示我的合并冲突状态:
git mergetool --tool=p4merge
。 - Flowsgit-bash.exe
和p4merge.exe
可以在同一个git bash窗口中工作。 - Fillip Peyton