尝试从git调用mergetool时出错

时间:2019-02-11 18:38:47

标签: git mergetool difftool p4merge

尝试调用mergetool。之前已经设置了mergetool和difftool。两者遵循相同的过程。 Difftool有效,但mergetool无效。当我尝试调用mergetool时,我得到:

SAR@DESKTOP-7MC10MV MINGW64 ~/projects/starter-web (master|MERGING)
$ git mergetool
Merging:
simple.html

Normal merge conflict for 'simple.html':
{local}: modified file
{remote}: modified file
The merge tool p4merge is not available as 'C:\Program Files\Perforce'

我尝试重做~/.gitconfig,但它只会弹出与上述相同的错误。

   [diff]
        tool = p4merge
    [difftool "p4merge"]
        path = C:/Program Files/Perforce/p4merge.exe
    [difftool]
        prompt = false
    [merge]
        tool = p4merge
    [mergetool "p4merge"]
        path = C:/Program Files/Perforce/p4merge.exe
    [mergetool]
        prompt = false

0 个答案:

没有答案