Get commits that have been *created* on a specific branch <p>Is there a (relatively simple) way to <em>only</em> get the commits corresponding to asterisks (*) on the <code>release</code> (left-most, marked by red frame) branch in this real-world example of a commit history?</p> <p><a href="https://i.stack.imgur.com/bwaLB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bwaLB.png" alt="enter image description here"></a></p> <p>The given set of commits are all high-risk commits (i.e. commits that are exposed to the public). There can only be two kinds of commits on the <code>release</code> (and/or <code>master</code>) branch(es):</p> <ol> <li>Actual releases (usually tagged, big merges)</li> <li>Hotfixes (usually un-tagged, small merges)</li> </ol> <p>My goal: I want to create statistics and small analytical tools that use these commits to help us (and especially our developers) to better understand high-risk code regions and possible bug patterns. I am also convinced that this can eventually be used to help us better estimate risk for the company and evaluate QA efficiency.</p> <p>Any suggestions?</p> <p>PS: This graph has been created with <code>git log --oneline --decorate --graph</code>, but I cut all sensitive information from it.</p>