【问题标题】:show commits contributing to diff between two commits显示导致两个提交之间差异的提交
【发布时间】:2021-09-12 22:00:25
【问题描述】:

我想使用提交消息获得两次提交之间更改的摘要。我找到了这个线程,它几乎可以满足我的要求:

List commits between 2 commit hashes in git

--ancestry-path 标记不显示有助于该链中合并提交的提交。我想要类似的东西,但在合并提交后返回到共同的祖先。

【问题讨论】:

  • 这不能回答您的问题吗? stackoverflow.com/q/1191282/989920
  • 请编辑您的标题以提出明确的问题。我不知道如何把它读成一个句子。
  • 删除 --ancestry-path 有帮助吗?
  • @LeGEC 我想这应该很明显......让它成为答案,我会标记它接受

标签: git


【解决方案1】:

看起来您只是想查看<commitA>..<commitB> 范围,而不使用--ancestry-path

git log <commitA>..<commitB>
git log --oneline --graph <commitA>..<commitB>

【讨论】:

    猜你喜欢
    • 2011-03-23
    • 1970-01-01
    • 2020-06-28
    • 1970-01-01
    • 2016-04-10
    • 2012-06-06
    • 2015-05-14
    • 2021-04-28
    • 1970-01-01
    相关资源
    最近更新 更多