如何设置在MacOSkdiff3吗? - How to setup kdiff3 in Mac OS?

- 此内容更新于:2016-02-03
主题:

在文件中,我设置了gitdiff如下:在此设置kdiff无法访问,我得到以下错误当我运行在终端你有什么建议我可以解决这个问题?在我目前的设置MacOS10.10.5gitdiff工具与kdiff我想取代。

原文:

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.

网友:kdiff3安装吗?

(原文:Is kdiff3 installed?)

楼主:@hjpotter92没有安装。我在当地unarchivedmg文件目录

(原文:@hjpotter92 It is not installed. I unarchive the dmg file in my local directory)

楼主:@DaveNewtonOSX10.10.5更新问题

(原文:@DaveNewton OS X 10.10.5 question updated)

网友:别担心,它只是让我措手不及,:)

(原文:No worries, it just caught me off-guard :))

解决方案:
通常位于以下位置:试着如果你安装使用,那么你就不需要配置的参数git1.8起。就以下工作:如果你安装kdiff安装dmg文件,然后设置本地路径如下:
原文:

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
楼主:我没有安装酿造。我有kdiff3。应用程序在我的本地目录。问题是如果我把本地路径找不到路径。你有什么建议关于当地kdiff3设置。应用路径位置?

(原文:I have not installed with brew. I have kdiff3.app in my local directory. The problem is if I set my local path it can not find the path. Do you have any suggestion regarding setup the local kdiff3.app path location ?)

网友:@J4cK更新以反映的实际位置。

(原文:@J4cK Update the path to reflect the actual location of kdiff3.app/Contents/MacOS/kdiff3.)

楼主:就像一个魅力:)谢谢你:)

(原文:works like a charm :) Thank you :))