1GIT-MERGE-BASE(1) Git Manual GIT-MERGE-BASE(1)
2
3
4
6 git-merge-base - Find as good common ancestors as possible for a merge
7
9 git-merge-base [--all] <commit> <commit>
10
12 "git-merge-base" finds as good a common ancestor as possible between
13 the two commits. That is, given two commits A and B git-merge-base A B
14 will output a commit which is reachable from both A and B through the
15 parent relationship.
16
17 Given a selection of equally good common ancestors it should not be
18 relied on to decide in any particular way.
19
20 The "git-merge-base" algorithm is still in flux - use the source...
21
23 --all
24 Output all common ancestors for the two commits instead of just
25 one.
26
28 Written by Linus Torvalds <torvalds@osdl.org>
29
31 Documentation by David Greaves, Junio C Hamano and the git-list
32 <git@vger.kernel.org>.
33
35 Part of the git(7) suite
36
37
38
39
40Git 1.5.3.3 10/09/2007 GIT-MERGE-BASE(1)