- Download P4Merge for your operating system: https://www.perforce.com/downloads/visual-merge-tool
- Run the
.dmg
file that you just downloaded. - Copy only the P4Merge app to your
/Applications
folder. (Unless you want the other apps as well.) - Run the following lines in terminal:
git config --global diff.tool p4merge
git config --global difftool.p4merge.path /Applications/p4merge.app/Contents/MacOS/p4merge