为什么“git difftool”不直接打开工具? [英] Why does "git difftool" not open the tool directly?

查看:495
本文介绍了为什么“git difftool”不直接打开工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我配置了 git 像这样:

  git config  - global diff.tool meld 

当我运行时:

  git difftool 

我收到以下消息:

 查看:'hello.txt'
点击返回以启动'meld':

然后,如果我按 Enter meld 如何禁用此消息,以便 meld 会在输入<$ c后立即启动。 $ c> git difftool ?

解决方案

git- difftool

选项
-y,--no-prompt
启动diff工具前不要提示。


I configured git like this:

git config --global diff.tool meld

When I run:

git difftool

I get the following message:

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

Then, if I press Enter, meld will launch.

How can I disable this message, so that meld will be launched straight away after typing git difftool?

解决方案

man git-difftool

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

这篇关于为什么“git difftool”不直接打开工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆