Show the original branch for a commit

后端 未结 9 2205
野的像风
野的像风 2020-12-05 04:14

I\'ve used git-blame to find a particular commit. Now I want to find the branch that it originally came from. (From there, I\'ll use the branch name to find the particular t

9条回答
  •  抹茶落季
    2020-12-05 04:57

    This worked well enough for me to get the branch name from a detached head in a Jenkins workspace:

    git show -s --pretty=%d

提交回复
热议问题