Is there a way to find who created a branch and when it was created without looking at commits?

Is there a way to find who created a branch and when it was created without looking at commits?

I have a need to know who created a branch and when it was created. A branch is a pointer to commits but these are two very different things. The author of a commit is not necessarily the creator of the branch. When cleaning up old branches, the creator of these branches should be contacted prior to deleting them in case they still want them.

I don’t see anywhere that GitLab has this information. Is it there but I don’t see it and just need directions to find it? Or, does GitLab need to be enhanced to capture that information?

Any help with this is greatly appreciated.

Hi,

Git itself does not allow you to track this, and a branch creation happens locally on the client. One way you could likely monitor this would be to look at push events and filter out the newly created remote branches.

If you want to prevent the creation of branches, you can also look into push rules.

Cheers,
Michael

Thank you for your feedback.