Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

About branch author

Tags:

git

gitlab

I would like to know which GIT command I should use to know WHO actually created BRANCH.

I already looked in several posts here, but I always find the solution of the author of the last branch commit and not who actually created it.

I AM USING GITLAB

like image 543
Max Ferreira Avatar asked Oct 16 '25 04:10

Max Ferreira


2 Answers

Branches are only a pointer to a commit in git. Who created the branch doesn't exist at all. So there isn't a command to find out who created a branch.

In order to find out who created a branch, you would likely need to tap into the Gitlab api and watch the push events that happen. When you see a branch for the first time, the user would be the person that created the new branch.

like image 53
Schleis Avatar answered Oct 17 '25 21:10

Schleis


Maybe this help you up:

git log --graph --decorate

Or:

git log --graph --decorate |grep Author
like image 20
Benyamin Jafari Avatar answered Oct 17 '25 19:10

Benyamin Jafari