gitlab权限基础知识

gitlab权限基础知识

① 可见性(库类别)

私有库:只有被赋予权限的用户可见
内部库:登录用户可以下载
公开库:所有人可以下载

———————————————————————————
② 成员权限说明

Guest(匿名用户) - 创建项目、写留言薄
Reporter(报告人)- 创建项目、写留言薄、拉项目、下载项目、创建代码片

Developer(开发者)- 创建项目、写留言薄、拉项目、下载项目、创建代码
片段、创建合并请求、创建新分支、推送不受保护的分支、移除不受保护的分
支 、创建标签、编写wiki
Master(管理者)- 创建项目、写留言薄、拉项目、下载项目、创建代码片
段、创建合并请求、创建新分支、推送不受保护的分支、移除不受保护的分
支 、创建标签、编写wiki、增加团队成员、推送受保护的分支、移除受保护
的分支、编辑项目、添加部署密钥、配置项目钩子
Owner(所有者)- 创建项目、写留言薄、拉项目、下载项目、创建代码片
段、创建合并请求、创建新分支、推送不受保护的分支、移除不受保护的分
支 、创建标签、编写wiki、增加团队成员、推送受保护的分支、移除受保护
的分支、编辑项目、添加部署密钥、配置项目钩子、开关公有模式、将项目转
移到另一个名称空间、删除项目

如果是开发人员选择Developer即可,只是查看权限,选择Guest即可

③ Protected Branches

(1) 四个作用

  • it prevents its creation, if not already created, from everybody except users with Maintainer permission
  • it prevents pushes from everybody except users with Maintainer permission
  • it prevents anyone from force pushing to the branch
  • it prevents anyone from deleting the branch
    Note: A GitLab admin is allowed to push to the protected branches.

(2) 更加精细的设置:
Using the “Allowed to push” and “Allowed to merge” settings, you can control the actions that different roles can perform with the protected branch. For example, you could set “Allowed to push” to “No one”, and “Allowed to merge” to “Developers + Maintainers”, to require everyone to submit a merge request for changes going into the protected branch. This is compatible with workflows like the GitLab workflow.

你可能感兴趣的:(git,github,pod,gemset)