Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I configure KDiff3 in Git Extensions?

When I open Git Extensions, the result is like this:

Enter image description here

I try to repair it. I click the repair button. But there isn't any action.

I get some reference: Git: How can I configure KDiff3 as a merge tool and diff tool?.

I try it like this:

Enter image description here

But it does not work.

How can I solve this problem?

Environment

  • OS: Windows 10 Pro 64-bit
  • Git 2.49
like image 327
Success Man Avatar asked Oct 14 '17 09:10

Success Man


People also ask

How do I configure kdiff3?

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 .

Where is kdiff3 installed?

Navigate to the following path: "C:\Program Files\KDiff3\kdiff3.exe".


1 Answers

Check if KDiff3 is installed and in which folder (to verify the path).

I was also getting the same problem and had run the mentioned Git commands, but it didn't help. Later I realized that my KDiff3 is installed under "Program Files (x86)" folder, not "Program Files".

I have changed the folder name in Git commands, for example:

Instead of

git config --global --add mergetool.kdiff3.path "C:/Program Files/KDiff3/kdiff3.exe"

I used the below and executed it again:

git config --global --add mergetool.kdiff3.path "C:/Program Files (x86)/KDiff3/kdiff3.exe"

And it solved the problem.

like image 165
Anuj Avatar answered Oct 16 '22 14:10

Anuj