AlbertEngelB
AlbertEngelB

Reputation: 16456

List Merge Commits in Specific Branch

Is it possible to view a list of merge commits for a branch in git?

I'm looking to see only the merges that happened in a particular branch (without the other commits that were included in the merge). Going based off of the commit message will not work in my situation.

Any ideas on how to do that?

Upvotes: 0

Views: 137

Answers (1)

Arkadiusz Drabczyk
Arkadiusz Drabczyk

Reputation: 12548

From man git-log:

--merges Print only merge commits. This is exactly the same as --min-parents=2.

Try this:

git log --merges

Upvotes: 1

Related Questions