【问题标题】:what will be the output of git show for a commit id who has two parents?对于有两个父母的提交 ID,git show 的输出是什么?
【发布时间】:2015-01-28 08:05:02
【问题描述】:

git show 将 commit 与其父 commit 进行比较。但是我们可以合并,并且结果提交将有两个父级。在这种情况下,如果我在该 id 上运行 git show 将是什么输出。哪个父级将被区分,或者如果两者都被选择,输出将如何? 我就是这样用的

git show commit_id
#commit_id is the id of a merged commit

【问题讨论】:

    标签: git merge show commit


    【解决方案1】:

    来源

    https://www.kernel.org/pub/software/scm/git/docs/git-show.html

    对于提交,它显示日志消息和文本差异。它也是 以 git 生成的特殊格式呈现合并提交 差异树--cc。

    【讨论】:

      猜你喜欢
      • 2016-11-09
      • 2015-05-20
      • 2011-07-23
      • 1970-01-01
      • 1970-01-01
      • 2019-06-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多