Max Ferreira
Max Ferreira

Reputation: 721

About branch author

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

Upvotes: 4

Views: 3289

Answers (2)

Benyamin Jafari
Benyamin Jafari

Reputation: 33976

Maybe this help you up:

git log --graph --decorate

Or:

git log --graph --decorate |grep Author

Upvotes: 1

Schleis
Schleis

Reputation: 43690

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.

Upvotes: 4

Related Questions