Skip to content

Instantly share code, notes, and snippets.

@markcam1
Created December 17, 2018 22:34
Show Gist options
  • Select an option

  • Save markcam1/e2268a151917d3fd565c4340044be844 to your computer and use it in GitHub Desktop.

Select an option

Save markcam1/e2268a151917d3fd565c4340044be844 to your computer and use it in GitHub Desktop.
Git for Windows Merge and Diff Tool

Configuring Git Merge tool and Diff tool

A few options are listed below with some outside resources if valuable.

Beyond Compare 4

git config --global difftool.bc.path "c:/program files/beyond compare 4/bcomp.exe"
git config --global mergetool.bc.path "c:/program files/beyond compare 4/bcomp.exe"

Configuring Beyond Compare with Git

KDiff3

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

git config --global --add diff.guitool kdiff3
git config --global --add difftool.kdiff3.path "C:/Program Files/KDiff3/kdiff3.exe"
git config --global --add difftool.kdiff3.trustExitCode false

or in Config file

[merge]
    tool = kdiff3
[mergetool "kdiff3"]
    path = C:/Program Files/KDiff3/kdiff3.exe
    trustExitCode = false
[diff]
    guitool = kdiff3
[difftool "kdiff3"]
    path = C:/Program Files/KDiff3/kdiff3.exe
    trustExitCode = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment