Git 历史。查找提交,包含在合并提交中

Git history. Find commits, included in merge commit

我有命令:git log --pretty=format:'* %s' --no-merges --first-parent beta $(git describe --match builds/beta/* --abbrev=0 HEAD)..HEAD

查找最后一个 builds/beta/.. 标记和 HEAD 之间的提交。但我想包括来自合并提交的提交。

例如,我有提交:“将分支 feature/request 合并到 beta。我想获得提交,也包含在该合并提交中。这可能吗?

您应该尝试删除 --first-parent