git-merge-base

merge-base Find a common ancestor of two commits. More information:…

git merge-base

Find a common ancestor of two commits. More information: https://git-scm.com/docs/git-merge-base.

git merge-base {{commit_1}} {{commit_2}}

git merge-base --all {{commit_1}} {{commit_2}}

git merge-base --is-ancestor {{ancestor_commit}} {{commit}}

Также может быть вам интересно:
КодТрюки BashНастройкиТерминал/Консоль
← git-merge git-merge-into →