Finding a common ancestor from two branches of git - this question explains how to show a common ancestor for two branches.
git merge-base branch1 branch2
However, I want to see a common ancestor of three or more branches. At first I thought it would work.
git merge-base branch1 branch2 branch3 branch4
But he does not actually return the common ancestor of all branches; as noted in docs
Given the three fixations A, B, and C, git merge-base A B Ccalculate the merge base between A and the hypothetical fixation M, which is the merger between B and C
what I do not want.
How do you find the common ancestral fulfillment of more than two branches?
Mirek source
share