Find out a Git branch creator

前端 未结 11 1394
陌清茗
陌清茗 2020-11-28 17:57

I want to find out who created a branch.

I am sort of able to do so with:

git branch -a | xargs -L 1 bash -c \'echo \"$1 `git log --pretty=format:\"%         


        
11条回答
  •  被撕碎了的回忆
    2020-11-28 18:20

    As far as I know, you may see if you are the creator of a branch only. This is indicated by the first row in .git/ref/heads/. If it ends with "Created from HEAD" you are the creator.

提交回复
热议问题