Find out a Git branch creator

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:"%H %an" $1^..$1`"' _

However, this returns the last committer per branch, not necessarily the person who created the branch.

12 Answers
12

Leave a Comment