Find out a Git branch creator

Ofir Farchy picture Ofir Farchy · Aug 21, 2012 · Viewed 125.1k times · Source

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.

Answer

DarVar picture DarVar · Oct 2, 2013

List remote Git branches by author sorted by committer date:

git for-each-ref --format='%(committerdate) %09 %(authorname) %09 %(refname)' --sort=committerdate