Git - difftool

> Code - (Programming|Computer) Language > Code Versioning > Git

1 - About

difftool configuration

Is there a diff with the mergetool ?

3 - Example

  • meld on linux
  • WinMerge or p4merge on windows
Advertising

4 - Management

4.1 - Tool

git difftool –tool=<tool> may be set to one of the following:

  • vimdiff
  • vimdiff2
  • vimdiff3

The following tools are valid, but not currently available:

  • araxis
  • bc
  • bc3
  • codecompare
  • deltawalker
  • diffmerge
  • diffuse
  • ecmerge
  • emerge
  • gvimdiff
  • gvimdiff2
  • gvimdiff3
  • kdiff3
  • kompare
  • meld
  • opendiff
  • p4merge
  • tkdiff
  • winmerge

Some of the tools listed above only work in a windowed environment. If run in a terminal-only session, they will fail.

Advertising

4.2 - Set

Git - Config

git config --global diff.tool toolName

Example p4merge

git config --global diff.tool p4merge
git config --global difftool.p4merge.cmd 'p4merge.exe $LOCAL $REMOTE'
git config --global difftool.prompt false

5 - Documentation / Reference

git difftool --tool-help
code/version/git/difftool.txt · Last modified: 2019/01/25 16:19 by gerardnico