Git - how to find first commit of specific branch

后端 未结 7 454
长发绾君心
长发绾君心 2020-11-30 18:35

In following example tree:

A-B-C-D-E (master branch)
    \\
     F-G-H (xxx branch)

I\'m looking for F - the first commit in xxx branch. I

7条回答
  •  误落风尘
    2020-11-30 19:12

    You should use the merge-base functionality which is designed to solve exactly this:

    git merge-base remotes/origin/ develop 
    

提交回复
热议问题