Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does "git difftool" not open the tool directly?

Tags:

git

diff

difftool

People also ask

How do I start git Difftool?

Instead of running one of the known diff tools, git difftool can be customized to run an alternative program by specifying the command line to invoke in a configuration variable difftool. <tool>. cmd . When git difftool is invoked with this tool (either through the -t or --tool option or the diff.

What is the default git diff tool?

The default Diff Tool is vimdiff. Specifying a Diff Tool affects the git difftool command. The command git diff still performs diffing on the command-line.


There's also an option:

difftool.prompt
  Prompt before each invocation of the diff tool.

The following command turns off the prompt globally (for all repos):

git config --global difftool.prompt false

Which is like writing in ~/.gitconfig:
(or in %HOMEDRIVE%%HOMEPATH%\.gitconfig)

[difftool]
  prompt = false

man git-difftool

OPTIONS
   -y, --no-prompt
       Do not prompt before launching a diff tool.