logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Git Merge Base - Find Common Ancestor | Online Free DevTools by Hexmos

Find common ancestor commits with Git Merge Base. Trace commit history and streamline branching strategies. Free online tool, no registration required.

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 {{commit_1}} {{commit_2}}

  • Print all best common ancestors of two commits:

git merge-base {{[-a|--all]}} {{commit_1}} {{commit_2}}

  • Check if a commit is an ancestor of a specific commit:

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

return

See Also