我git
是这样配置的:
git config --global diff.tool meld
当我运行时:
git difftool
我收到以下消息:
Viewing: 'hello.txt'
Hit return to launch 'meld':
然后,如果我按Enter,meld
将启动。
如何禁用此消息,以便meld
在键入后立即启动git difftool
?
还有一个选项:
difftool.prompt
Prompt before each invocation of the diff tool.
以下命令将全局关闭提示(对于所有 repos):
git config --global difftool.prompt false
这就像写在~/.gitconfig
:(
或%HOMEDRIVE%%HOMEPATH%\.gitconfig
)中
[difftool]
prompt = false
man git-difftool
OPTIONS
-y, --no-prompt
Do not prompt before launching a diff tool.