How to allow access for each user protected by branches in GitLab?

GitLab allows you to create secure branches, and then indicate that witch users will have access to these secure branches. But what about if I want some users to access some protected branches , but not all on the same repo? I mean more discrete / granular permissions for user branches.

+6
source share
2 answers

These permission types do not exist in GitLab.

As an alternative approach: you can make the user unable to commit in the main repository, and then use the project branch workflow , which allows him to fork the repository into his own namespace, on which they can do their work, and then send a pull request . It looks like the workflow that follows GitHub.

+3
source

There is no read access with git (even gitolite could not do this , before it crashed with gitlab 5.0 ): if you can access the repo, you have access to all its branches. You can protect against shock, but not pull. The plug is available in GitLab 5.2, as Steven mentions , so you have this solution.

+2
source

Source: https://habr.com/ru/post/948242/


All Articles