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

前端 未结 2 1473
说谎
说谎 2020-12-12 12:19

I configured git like this:

git config --global diff.tool meld

When I run:

git difftool

I g

2条回答
  •  被撕碎了的回忆
    2020-12-12 12:50

    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
    

提交回复
热议问题