Find out a Git branch creator

前端 未结 11 1367
陌清茗
陌清茗 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:28

    Adding to DarVar's answer:

    git for-each-ref --format='%(committerdate) %09 %(authorname) %09 %(refname)' | sort -k5n -k2M -k3n -k4n | awk '{print $7 $8}'
    

    P.S.: We used AWK to pretty print the author and the remote branch.

提交回复
热议问题