gpt4 book ai didi

git - "git difftool"为什么不能直接打开工具?

转载 作者:IT王子 更新时间:2023-10-29 01:18:29 29 4
gpt4 key购买 nike

我这样配置 git:

git config --global diff.tool meld

当我运行时:

git difftool

我收到以下消息:

Viewing: 'hello.txt'
Hit return to launch 'meld':

然后,如果我按 Entermeld 将启动。

如何禁用此消息,以便在键入 git difftool 后立即启动 meld

最佳答案

还有一个选项:

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

以下命令全局关闭提示(对于所有存储库):

git config --global difftool.prompt false

这就像在 ~/.gitconfig 中编写:
(或在 %HOMEDRIVE%%HOMEPATH%\.gitconfig 中)

[difftool]
prompt = false

关于git - "git difftool"为什么不能直接打开工具?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7897517/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com