Why does “git difftool” not open the tool directly?

半腔热情 提交于 2019-11-28 15:29:24
man git-difftool

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

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

It's like writing (in ~/.gitconfig or %HOMEDRIVE%%HOMEPATH%\.gitconfig)

[difftool]
  prompt = false
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!