Find out a Git branch creator

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

    for those looking for a DESC ... this seems to work --sort=-

    ty for the formatting, new to this ...my eyes are loosing some of it's bloodshot

    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
    

    further ref: https://stackoverflow.com/a/5188364/10643471

提交回复
热议问题