简体   繁体   English

git config - 双差异和合并工具

[英]git config - double diff and merge tool

I checked my git settings today and I found that I have 2 different diff and mergetools there.我今天检查了我的 git 设置,发现那里有 2 个不同的差异和合并工具。 Is this normal?这是正常的吗?

在此处输入图片说明

It is not normal , but it is not anything to worry about.这是不正常的,但不必担心。 With your config, you could for example run the following commands使用您的配置,您可以例如运行以下命令

git difftool -t sourcetree HEAD~ HEAD
git difftool -t p4mergetool HEAD~ HEAD

which would open the diff between the last two commits in the corresponding diff-tool.这将在相应的差异工具中打开最后两次提交之间的差异。 And you have set p4mergetool as default, so if you don't specify the tool, that one will be picked.并且您已将p4mergetool设置为默认值,因此如果您未指定该工具,则会选择该工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM