Reputation: 721
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
Reputation: 33976
Maybe this help you up:
git log --graph --decorate
Or:
git log --graph --decorate |grep Author
Upvotes: 1
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