Questions icon indicating copy to clipboard operation
Questions copied to clipboard

What's the git command to find the PR merge commits directly made on a branch

Open SankarBhagawanPalla opened this issue 1 year ago • 0 comments

Hi Everyone,

I'm trying to write a git command that can list all PR merge commits directly made on a specific branch. I tried below command but that didn't help me: git log --first-parent origin/branch1 This command isn't listing PR merge commits directly merged into the branch1 and also it's listing PR merge commits merged into different branch that are brought into branch1 through merge. Any help is appreciated. Thanks in advance!

SankarBhagawanPalla avatar Jul 29 '24 17:07 SankarBhagawanPalla