如何使用 git difftool 来区分合并冲突?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3741931/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to use git difftool to diff merge conflicts?
提问by j-pb
After a merge failed with some conflicts I can list those with git diff
,
but git difftool
won't display them with the difftool set in the config(in my case Kaleidoscope), instead it will just use normal diff.
在合并因某些冲突而失败后,我可以使用 列出它们git diff
,但git difftool
不会使用配置中设置的 difftool 显示它们(在我的情况下为 Kaleidoscope),而是仅使用普通 diff。
A git difftool
comparing with a previous commit will work.
一个git difftool
与以前比较提交会的工作。
Is there a way to use git difftool on merge conflicts?
有没有办法在合并冲突中使用 git difftool?
Greets Jan
问候简
采纳答案by 3lectrologos
Try git mergetool
.
试试git mergetool
。
回答by Andrew
Firstly try:
首先尝试:
git difftool -t <yourtool>
If that doesn't work, look at man git-difftool
and check the list of supported tools. Check if one of those does what you want, if it does then you've narrowed it down to git not supporting Kaleidoscope, which may need some other config tweaking.
如果这不起作用,请查看man git-difftool
并检查支持的工具列表。检查其中一个是否符合您的要求,如果符合,那么您已将范围缩小到 git 不支持 Kaleidoscope,这可能需要一些其他配置调整。