CmdID

CmdID / Commands

git-merge-base

Find a common ancestor of two commits. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Print the best common ancestor of two commits

git merge-base commit_1 commit_2Identify

Print all best common ancestors of two commits

git merge-base --all commit_1 commit_2Identify

Check if a commit is an ancestor of a specific commit

git merge-base --is-ancestor ancestor_commit commitIdentify