Git: How to find all commits in branch A that originated in derived branch B merged back into A?

Posted by Michael Ludwig on Stack Overflow See other posts from Stack Overflow or by Michael Ludwig
Published on 2010-06-02T09:23:59Z Indexed on 2010/06/02 13:33 UTC
Read the original article Hit count: 249

Filed under:

In Git, given (1) a branch A and (2) a branch B derived from A at some point in the past and then merged back into A, how can I find all the commits now in A that originated in B?

The intent is to identify the changeset of work performed in B now in A to more quickly track down issues.

A squash commit would obviously and conveniently pack the entire changeset in one commit for easy reference, but the drawbacks (such as loss of information and individual attributability) make this option undesirable for us. Hence my question.

© Stack Overflow or respective owner

Related posts about git