Find out a Git branch creator

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

    I tweaked the previous answers by using the --sort flag and added some color/formatting:

    git for-each-ref --format='%(color:cyan)%(authordate:format:%m/%d/%Y %I:%M %p)    %(align:25,left)%(color:yellow)%(authorname)%(end) %(color:reset)%(refname:strip=3)' --sort=authordate refs/remotes
    

提交回复
热议问题