How to allow per user protected branches access in GitLab?

时光毁灭记忆、已成空白 提交于 2019-11-29 07:27:47
Steven V

Those types of permissions do not exist in GitLab.

As an alternative approach: you can make the user unable to commit to the main repository and then use the Project forking workflow allowing them to fork the repository to their own namespace which they can do their work on and then submit a pull request. Similar to the workflow that GitHub follows.

VonC

There is no read-access possible with git (even gitolite couldn't do it, before it got dropped with gitlab 5.0): if you can access a repo, you have access to all its branches. You can protect against push, but not pull. Fork is available in GitLab 5.2, as Steven mentions, so you have that solution.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!