git merge-base
Find a common ancestor of two commits. More information: https://git-scm.com/docs/git-merge-base.
- Print the best common ancestor of two commits:
git merge-base
- Print all best common ancestors of two commits:
git merge-base
- Check if a commit is an ancestor of a specific commit:
git merge-base --is-ancestor
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
