Git: How to find all commits in branch A that originated in derived branch B merged back into A?
- by Michael Ludwig
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.