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

前端 未结 2 1461
说谎
说谎 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:41
    man git-difftool
    
    OPTIONS
       -y, --no-prompt
           Do not prompt before launching a diff tool.
    
    0 讨论(0)
  • 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
    
    0 讨论(0)
提交回复
热议问题