gitlab设置某个项目添加某个用户可以编辑权限

现在我们来设置我们GitLab上的SSH:

1、某人需要登陆gitlab,需要首先自己注册账号

2.首先我们在git中使用‘’$ ssh-keygen -t rsa -C ‘xxx@email.com’.然后会有让你设置密码的几条语句,我们直接按回车设置成空,然后它会返回一个图(我也不知道有什用),在图上面你能找到一个文件.ssh的地址,然后在你的电脑上找到这个地址,然后打开里面的公钥文件复制。

3.使用个人账号登陆自己的GitLab网页,进入个人设置的settings选项

通过下面的操作添加自己的公钥

4、项目管理员登陆

5、选择要开放给这个用户的项目

6、选择项目setting下面members

7、按照如下操作添加之前注册的用户

注意permission的选择会影响此用户对项目的操作权限

下面列表是不同权限对应的操作权限(两个表格来自不同的文章)

Project

表一:The following table depicts the various user permission levels in a project.

ActionGuestReporterDeveloperMasterOwner
Create new issue?????
Create confidential issue?????
View confidential issues(?) 1????
Leave comments?????
See a list of jobs? 2????
See a job log? 2????
Download and browse job artifacts? 2????
View wiki pages?????
Pull project code ????
Download project ????
Create code snippets ????
Manage issue tracker ????
Manage labels ????
See a commit status ????
See a container registry ????
See environments ????
Create new environments  ???
Use environment terminals   ??
Stop environments  ???
See a list of merge requests ????
Manage/Accept merge requests  ???
Create new merge request  ???
Create new branches  ???
Push to non-protected branches  ???
Force push to non-protected branches  ???
Remove non-protected branches  ???
Add tags  ???
Write a wiki  ???
Cancel and retry jobs  ???
Create or update commit status  ???
Update a container registry  ???
Remove a container registry image  ???
Create new milestones   ??
Add new team members   ??
Push to protected branches   ??
Enable/disable branch protection   ??
Turn on/off protected branch push for devs   ??
Rewrite/remove Git tags   ??
Edit project   ??
Add deploy keys to project   ??
Configure project hooks   ??
Manage runners   ??
Manage job triggers   ??
Manage variables   ??
Manage pages   ??
Manage pages domains and certificates   ??
Switch visibility level    ?
Transfer project to another namespace    ?
Remove project    ?
Force push to protected branches 3     
Remove protected branches 3     
Remove pages    ?

 

表二:下表显示了不同类型用户的可用权限级别:

编号GuestReporterDeveloperMaster
1创建新问题创建新问题创建新问题创建新问题
2可发表评论可发表评论可发表评论可发表评论
3能够在项目墙上写内容能够在项目墙上写内容能够在项目墙上写内容能够在项目墙上写内容
4能够拉取项目代码能够拉取项目代码能够拉取项目代码
5可下载项目可下载项目可下载项目
6能够编写代码片段能够编写代码片段能够编写代码片段
7创建新的合并请求创建新的合并请求
8创建新的分支创建新的分支
9推送并移除不受保护的分支推送并移除不受保护的分支
10包含标签包含标签
11可创建,编辑,删除项目里程碑可以创建,编辑,删除项目里程碑
12可创建或更新提交状态可创建或更新提交状态
13写一个维基写一个维基
14创建新的环境创建新的环境
15取消并重试作业取消并重试作业
16更新并删除注册表映像更新并删除注册表映像
17可添加新的团队成员
18推动并移除受保护的分支
19可编辑项目
20可以管理runner,runner触发器和变量
21将部署密钥添加到项目
22能够管理群集
23配置项目钩件
24可以启用/禁用分支保护
25能够重写或删除Git标签

//原文出自【易百教程】,商业转载请联系作者获得授权,非商业转载请保留原文链接:https://www.yiibai.com/gitlab/gitlab_user_permissions.html
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值