Git - how to find first commit of specific branch

后端 未结 7 427
长发绾君心
长发绾君心 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:24

    git rev-list --ancestry-path $(git merge-base master xxx)..xxx | tail -1

    0 讨论(0)
提交回复
热议问题