

It basically amounted to adding these lines to my. Of all the gui's I checked, KDiff3 proved to be the most transparent to use.īut I found the instructions I needed to get it working in Windows in this blog post, instructions which differ slightly from the other approaches listed here.
#P4merge exe portable#
I'm using Portable Git on WinXP (works a treat!), and needed to resolve a conflict that came up in branching. Setting will not work anymore since Git has started trying to support p4merge, see libexec/git-core/git-mergetool-lib.so we just need to specify the mergetool path for git,for example the p4merge: git config -global 'C:\Program Files\Perforce\p4merge.exe'
#P4merge exe how to#
$LOCALAPPDATA/Perforce/p4merge.exe), git does not seem to be expanding environment variables for paths (if you know how to get this working, please let me know or update this answer)
#P4merge exe full#
note that by default Perforce will add its installation dir to PATH, thus no need to specify full path to p4merge in the commandĪs pointed out by Pakosz, latest msys git now "natively" supports p4merge (tested on 1.8.5.2.msysgit.0).added double quotes for all file names so that files with spaces can still be found by the merge tool (I tested this in msys Git from Powershell).the custom tool config value resides in "mergetool.cmd", not "merge.cmd" (silly me, spent an hour troubleshooting why git kept complaining about non-existing tool).valid for all git projects not just the current one This file has description Perforce Merge.

This file belongs to product P4Merge and was developed by company Perforce Software. You can also check most distributed file variants with name p4merge.exe. The changes (relative to Charles Bailey): If you want to see general information about the p4merge.exe then visit General Information Page. Or, from a windows cmd.exe shell, the second line becomes : git config -global "p4merge.exe \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\"" To follow-up on Charles Bailey's answer, here's my git setup that's using p4merge (free cross-platform 3way merge tool) tested on msys Git (Windows) install: git config -global merge.tool p4merge
