Search notes:

git merge-base

Find as good common ancestors as possible for a merge.

See also

git commands

Index