哪个 git 命令只给我 master 分支的合并提交?

Which git command give me only merge commits for the master branch?

刚刚合并PR到master

我想记录所有合并提交。

那么 git command 只给我 merge master 分支 的提交?

使用合并标志

$ git log --merges


使用 grep

$ git log | grep '^Merge:' -B 1 -A 5

这将显示合并提交的列表