Today I have learned two different usages of git
command. First, to
list the least common ancestor of two refs, we may use following command:
$ git merge-base --octopus <commit_1> <commit_2> ... <commit_n>
Please notice that --octopus
is mandatory; otherwise, git
will create a hypothetical commit M
, which merges …