Gangmax Blog

Who Creates The Git Branches, and When?

When working with a Git repository, sometimes I want to know who creates the git branches and When. Here is the command how to get such information. From here.

1
2
3
4
5
# 1. The original version.
git for-each-ref --format='%(committerdate) %09 %(authorname) %09 %(refname)' --sort=committerdate

# 2. The upgraded version.
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

Comments