没有提示的合并工具

问题描述 投票:1回答:1

我正在使用mergetool来增强有关合并冲突的文件修改。我希望在没有提示的情况下使用mergetool。

See 'git mergetool --tool-help' or 'git help config' for more details.
'git mergetool' will now attempt to use one of the following tools:
tortoisemerge emerge vimdiff
Merging:
mergefile.txt

Deleted merge conflict for 'mergefile.txt':
  {local}: modified file
  {remote}: deleted
Use (m)odified or (d)eleted file, or (a)bort?
git prompt mergetool
1个回答
0
投票
git config mergetool.prompt false

这将在每次发生合并冲突时禁用使用合并工具的提示。

但是,特定的输出是not,提示您使用合并工具。当合并冲突是已删除的合并冲突时,即在一侧已修改文件而在另一侧已删除文件时,则不使用合并工具。没有任何东西可以与合并工具进行比较,因为一侧完全是空的。解决方案是在命令行上使用m / d / a选择一个选项来回答该问题。

© www.soinside.com 2019 - 2024. All rights reserved.