Guide to configure KDiff3 as git merge tool and diff tool (Mac)

This is a simple guide to configure your git merge tool and diff tool to use KDiff3.

Install KDiff3

Configure Git

Execute in terminal

git config --add merge.tool kdiff3
git config --add mergetool.kdiff3.path /Applications/ 
git config --add mergetool.kdiff3.trustExitCode false
git config --add diff.guitool kdiff3
git config --add difftool.kdiff3.path /Applications/ 
git config --add difftool.kdiff3.trustExitCode false


Add new comment

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.