【发布时间】:2012-05-24 17:05:02
【问题描述】:
我已经为 p4merge 设置了我的类路径并设置了文件 .gitconfig,但是当 p4merge 工具假设操作这两个冲突的文件时,我得到了这个错误。有人知道解决办法吗?
添加到类路径:“C:\Program Files\Perforce\p4merge.exe” 添加到 .gitconfig 文件中:
[merge]
tool = p4merge
[mergetool "p4merge"]
cmd = p4merge.exe \\\"$BASE\\\" \\\"$LOCAL\\\" \\\"$REMOTE\\\" \\\"$MERGED\\\"
错误信息:
Normal merge conflict for 'protected/views/layouts/main.php':
{local}: modified file
{remote}: modified file
Hit return to start merge resolution tool (p4merge):
C:\Program Files (x86)\Git/libexec/git-core/mergetools/p4merge: line 8: p4merge:
command not found
protected/views/layouts/main.php seems unchanged.
Was the merge successful? [y/n] n
merge of protected/views/layouts/main.php failed
【问题讨论】: