Forrest logo
back to context overview

git-merge-base

List of commands for git-merge-base:

  • git-merge-base:tldr:0a2eb git-merge-base: Print the best common ancestor of two commits.
    $ git merge-base ${commit_1} ${commit_2}
    try on your machine
    explain this command
  • git-merge-base:tldr:8553f git-merge-base: Output all best common ancestors of two commits.
    $ git merge-base --all ${commit_1} ${commit_2}
    try on your machine
    explain this command
  • git-merge-base:tldr:8bba6 git-merge-base: Check if a commit is an ancestor of a specific commit.
    $ git merge-base --is-ancestor ${ancestor_commit} ${commit}
    try on your machine
    explain this command
back to context overview