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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With