In.gitconfig file I setup up the git diff as follows:
[diff] tool = kdiff3 [difftool "kdiff3"] path = path_directory/kdiff3.app In this setting kdiff is not accessible and I get the following error when I run in terminal
>> git difftool The diff tool kdiff3 is not available as 'Kdiff_local_software_path/kdiff3.app' fatal: external diff died, stopping at modified_file Do you have any suggestion I can fix this issue ? In my current setup Mac OS 10.10.5 git diff tool is git merge tool that I want to replace with kdiff.
Add the kdiff3 installation directory to the Windows Path. Add TMP to the WSLENV Windows environment variable (WSLENV=TMP/up). The TMP dir will be used by git for temporary files, like previous revisions of files, so the path must be on the windows filesystem for this to work. Set TMPDIR to TMP in .
KDiff3 is an open source file comparison and merge tool that's available for Windows and Linux. It's a KDE project. Unlike some comparison tools, KDiff3 is capable of three-way comparisons, i.e., you may use it to select up to 3 files or folders for comparison or merging.
kdiff3 is generally located at the following location:
/Applications/kdiff3.app/Contents/MacOS/kdiff3 so, try
[difftool "kdiff3"] path = /Applications/kdiff3.app/Contents/MacOS/kdiff3 If you installed kdiff using brew, then you'd not need the difftool parameter in config for git 1.8 onwards. Just the following would work:
[diff] tool = kdiff3 If you installed kdiff mounting the dmg file to kdiff.app then set your local path as following:
[difftool "kdiff3"] path = directory_path_where_you_installed/kdiff3.app/Contents/MacOS/kdiff3
Download kdiff3 and install as app(drag and drop the kdiff3 into your Applications): http://sourceforge.net/projects/kdiff3/files/kdiff3/0.9.98/kdiff3-0.9.98-MacOSX-64Bit.dmg/download
Setup git config tool as following, works for me on MacBook Pro:
git config --global merge.tool kdiff3
and:
git config --global mergetool.kdiff3.cmd '/Applications/kdiff3.app/Contents/MacOS/kdiff3 $BASE $LOCAL $REMOTE -o $MERGED'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With