git显示提交超越比较 [英] git show commit in beyond compare
问题描述
我希望在通过 git show
查看Beyond Compare或其他任何单独的diff工具时看到特定的提交。我试着寻找git show / difftool / config的帮助,但找不到任何东西。有谁知道它是如何做到的?
我看过 Git比较与超越比较和配置超越比较 git difftool
但我也想用它作为工具从 git show
我设法使用 git difftool
查看我通常通过 git show
查看的提交。
git show $ commit
转换为 git difftool $ commit ^ $ commit
。
以上命令显示了commit的父级($ commit ^)和commit之间的区别。所有这些当然是在配置Beyond Compare和difftool之后。
I would like to see a specific commit in Beyond Compare or any other separate diff tool while viewing it via git show
. I tried looking at help of git show/difftool/config but couldn't find anything. Does anyone know how it can be done?
I've looked at Git Diff with Beyond Compare and configured Beyond Compare for git difftool
but I also want to use it as tool from git show
I managed to use git difftool
to see commits that I normally used to see via git show
.
git show $commit
translates to git difftool $commit^ $commit
.
The above command shows difference between commit's parent ($commit^) and commit. All this is of course after configuring Beyond Compare with difftool.
这篇关于git显示提交超越比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!