Tag | tips

  1. Git Merge Base and Checkout

    Today I have learned two different usages of git command. First, to list the least common ancestor of two refs, we may use following command:

    $ git merge-base --octopus <commit_1> <commit_2> ... <commit_n>
    

    Please notice that --octopus is mandatory; otherwise, git will create a hypothetical commit M, which merges …

    More