Finding a branch point with Git?

前端 未结 22 1357
小鲜肉
小鲜肉 2020-11-22 10:11

I have a repository with branches master and A and lots of merge activity between the two. How can I find the commit in my repository when branch A was created based on mast

22条回答
  •  太阳男子
    2020-11-22 10:50

    Not quite a solution to the question but I thought it was worth noting the the approach I use when I have a long-living branch:

    At the same time I create the branch, I also create a tag with the same name but with an -init suffix, for example feature-branch and feature-branch-init.

    (It is kind of bizarre that this is such a hard question to answer!)

提交回复
热议问题