Can we restrict users from creating branches?


Is there any option to restrict users from creating branches ?

I think you mean “push up branches”? If so, I don’t believe gitlab has this level of access.

However, you can do this fairly easily with git itself via hooks. There are all sort of client hooks such as pre and post hooks. From the server stand point there is pre-receive that you can use to check to see what is coming across before allowed it.

1 Like