x gh repo collaborator
仓库成员管理
例子
以列表格式罗列仓库 <owner>/<repo> 的成员
sh
x gh repo collaborator ls --repo <owner>/<repo>添加 <user> 成员到 <org>/<repo> 之中. 并赋予推送 <push> 权限
sh
x gh repo collaborator add --repo <org>/<repo> --permission push <user>子命令
| 名称 | 描述 |
|---|---|
| x gh repo collaborator ls | 交互式表格罗列仓库成员 |
| x gh repo collaborator ll | 罗列仓库成员 |
| x gh repo collaborator add | 添加仓库成员 |
| x gh repo collaborator edit | 修改仓库成员权限 |
| x gh repo collaborator rm | 移除仓库成员 |
| x gh repo collaborator invitation | 仓库成员邀请函管理 |
x gh repo collaborator ls
交互式表格罗列仓库成员
- 使用:
sh
x gh repo collaborator|c lsx gh repo collaborator ll
罗列仓库成员
- 例子:
罗列当前用户仓库 <repo> 中的仓库成员
sh
x gh repo collaborator ll --repo <repo>罗列 <org_path>/<repo> 组织仓库中的仓库成员
sh
x gh repo collaborator ll --repo <org_path>/<repo>- 使用:
sh
x gh repo collaborator|c llx gh repo collaborator add
添加仓库成员
- 例子:
添加 <user> 成员到 <org>/<repo> 之中. 并赋予推送 <push> 权限
sh
x gh repo collaborator add --repo <org>/<repo> --permission push <user>- 使用:
sh
x gh repo collaborator|c add <#1> <#n>- 参数:
| 参数 | 描述 |
|---|---|
#1 | 用户空间地址 |
#n | 用户空间地址 |
x gh repo collaborator edit
修改仓库成员权限
- 例子:
修改<org>/<repo> 之中的 <user> 成员权限为 push 权限
sh
x gh repo collaborator edit --repo <org>/<repo> --permission push <user>- 使用:
sh
x gh repo collaborator|c edit|ed <#1>- 参数:
| 参数 | 描述 |
|---|---|
#1 | 用户空间地址 |
x gh repo collaborator rm
移除仓库成员
- 使用:
sh
x gh repo collaborator|c rm <#1> <#n>- 参数:
| 参数 | 描述 |
|---|---|
#1 | 用户空间地址 |
#n | 用户空间地址 |
x gh repo collaborator invitation
仓库成员邀请函管理
- 子命令:
| 名称 | 描述 |
|---|---|
| x gh repo collaborator invitation ls | 罗列仓库或当前用户的邀请函 |
| x gh repo collaborator invitation edit | 修改仓库邀请函权限 |
| x gh repo collaborator invitation accept | 接受邀请函 |
| x gh repo collaborator invitation rm | 拒绝并删除邀请函 |
| x gh repo collaborator invitation cancel | 取消仓库发出的邀请函 |
x gh repo collaborator invitation ls
罗列仓库或当前用户的邀请函
- 使用:
sh
x gh repo collaborator|c invitation lsx gh repo collaborator invitation edit
修改仓库邀请函权限
- 使用:
sh
x gh repo collaborator|c invitation edit|ed <#1>- 参数:
| 参数 | 描述 |
|---|---|
#1 | 邀请函 ID (可通过 x gh repo collaborator invitation ls 获取) |
x gh repo collaborator invitation accept
接受邀请函
- 使用:
sh
x gh repo collaborator|c invitation accept <#1> <#n>- 参数:
| 参数 | 描述 |
|---|---|
#1 | 邀请函 ID (可通过 x gh repo collaborator invitation ls 获取) |
#n | 邀请函 ID |
x gh repo collaborator invitation rm
拒绝并删除邀请函
- 使用:
sh
x gh repo collaborator|c invitation rm <#1> <#n>- 参数:
| 参数 | 描述 |
|---|---|
#1 | 邀请函 ID (可通过 x gh repo collaborator invitation ls 获取) |
#n | 邀请函 ID |
x gh repo collaborator invitation cancel
取消仓库发出的邀请函
- 使用:
sh
x gh repo collaborator|c invitation cancel <#1> <#n>- 参数:
| 参数 | 描述 |
|---|---|
#1 | 邀请函 ID (可通过 x gh repo collaborator invitation ls 获取) |
#n | 邀请函 ID |
TIP
在交互式终端中(如 zsh, bash ...),可以使用 Tab 获取补全信息
运行 CMD SUBCOMMAND --help 可以获取命令的更多信息
本文作者
转载请注明本文出处及链接
sh
https://cn.x-cmd.com/mod/gh/repo-collaborator/
帮助我们改善文档
X-CMD 的文档内容来自命令的帮助文档、多个数据源以及文档库生成。文档中如果有错误或不明确的地方,欢迎通过这些方式进行告知~
扫描添加小助手完成验证加入微信群