Find first common child of two commits
: A T / \ i B C m : : e D E \ / | F V : git merge-base B E allows to find where a the common ancestor A of the two commits. Is there a way to find the commit F where the two branches are merged again? Oops. Didn't read that carefully enough. The only information in a commit is the id of its parent (or parents). You cannot get to a child from a parent commit (this is the directed part of the repository being a DAG). Looking at this more - it looks like the --ancestry-path option for git log can do this. For instance given: * 85d26ab When compiling vim, also compile & install gvim * 3146e5d