Finding a branch point with Git?

前端 未结 22 1546
小鲜肉
小鲜肉 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:57

    You can examine the reflog of branch A to find from which commit it was created, as well as the full history of which commits that branch pointed to. Reflogs are in .git/logs.

提交回复
热议问题