I use windows 7
. I want to use p4merge
as Git diff/merge tool. I follow this article and this one to setup and config p4merge
:
git config --global merge.tool p4merge
git config --global mergetool.p4merge.path "C:/Program Files/Perforce/p4merge.exe"
git config --global diff.tool p4merge
git config --global difftool.p4merge.path "C:/Program Files/Perforce/p4merge.exe"
And these lines are from git config
:
merge.tool=p4merge
mergetool.p4merge.path=C:/Program Files/Perforce/p4merge.exe
diff.tool=p4merge
difftool.p4merge.path=C:/Program Files/Perforce/p4merge.exe
mergetool.keeptemporaries=false
mergetool.prompt=false
Now git mergetool
command works fine. But when I use git difftool
command in git bash
, I expect p4merge
but I see internal implementation of diff in git bash
.
I tried Smooth Git + P4merge but it does not work for me also I tried to do as described in External Merge and Diff Tools but I did not understand that.
Note:
When type of conflict is removed file conflict
, git difftool
command opens p4merge
.
diff.tool=p4diff
bydiff.tool=p4merge
– Balladmonger/
instead of `\` as separator perhaps solve the problem... – Scgit difftool --staged
. One thing annoys me though: the error message when files were added. p4merge wants files to compare. Is there a way to omit added files? How did you solve this? – Chausses