打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
gitlab develop push main to origin/main was rejected by remote
猜测是因为权限不够被拒绝了,我就以管理员的账号登录查看该项目下A的角色权限,发现是Developer角色
接下来就是查看GitLab的官方文档,看不同的角色具体分配那些权限
GitLab中共定义了四种角色,每种角色各分配了不同的权限,如下表所示
我查找了Push to protected branches这一项,发现Developer是没有该权限的,所以导致无法push代码到远程仓库,只需项目所有者对该成员提权即可,重新邀请该成员,role permission选择Maintainer角色,如下图所示
ActionGuestReporterDeveloperMaintainerOwner
Download project✓ (1)✓✓✓✓
Leave comments✓ (1)✓✓✓✓
View Insights charts (ULTIMATE)✓✓✓✓✓
View approved/blacklisted licenses (ULTIMATE)✓ (1)✓✓✓✓
View License Compliance reports (ULTIMATE)✓ (1)✓✓✓✓
View Security reports (ULTIMATE)✓ (3)✓✓✓✓
View Dependency list (ULTIMATE)✓ (1)✓✓✓✓
View License list (ULTIMATE)✓ (1)✓✓✓✓
View licenses in Dependency list (ULTIMATE)✓ (1)✓✓✓✓
View Design Management pages (PREMIUM)✓✓✓✓✓
View project code✓ (1)✓✓✓✓
Pull project code✓ (1)✓✓✓✓
View GitLab Pages protected by access control✓✓✓✓✓
View wiki pages✓✓✓✓✓
See a list of jobs✓ (3)✓✓✓✓
See a job log✓ (3)✓✓✓✓
Download and browse job artifacts✓ (3)✓✓✓✓
Create new issue✓ (1)✓✓✓✓
See related issues✓✓✓✓✓
Create confidential issue✓ (1)✓✓✓✓
View confidential issues(2)✓✓✓✓
Assign issues
✓✓✓✓
Label issues
✓✓✓✓
Set issue weight
✓✓✓✓
Lock issue threads
✓✓✓✓
Manage issue tracker
✓✓✓✓
Manage related issues (STARTER)
✓✓✓✓
Manage labels
✓✓✓✓
Create code snippets
✓✓✓✓
See a commit status
✓✓✓✓
See a container registry
✓✓✓✓
See environments
✓✓✓✓
See a list of merge requests
✓✓✓✓
View project statistics
✓✓✓✓
View Error Tracking list
✓✓✓✓
Pull from Conan repository, Maven repository, or NPM registry (PREMIUM)
✓✓✓✓
Publish to Conan repository, Maven repository, or NPM registry (PREMIUM)
✓✓✓
Upload Design Management files (PREMIUM)
✓✓✓
Create new branches
✓✓✓
Push to non-protected branches
✓✓✓
Force push to non-protected branches
✓✓✓
Remove non-protected branches
✓✓✓
Create new merge request
✓✓✓✓
Assign merge requests
✓✓✓
Label merge requests
✓✓✓
Lock merge request threads
✓✓✓
Manage/Accept merge requests
✓✓✓
Create new environments
✓✓✓
Stop environments
✓✓✓
Add tags
✓✓✓
Cancel and retry jobs
✓✓✓
Create or update commit status
✓✓✓
Update a container registry
✓✓✓
Remove a container registry image
✓✓✓
Create/edit/delete project milestones
✓✓✓
Use security dashboard (ULTIMATE)
✓✓✓
View vulnerabilities in Dependency list (ULTIMATE)
✓✓✓
Create issue from vulnerability (ULTIMATE)
✓✓✓
Dismiss vulnerability (ULTIMATE)
✓✓✓
Apply code change suggestions
✓✓✓
Create and edit wiki pages
✓✓✓
Rewrite/remove Git tags
✓✓✓
Manage Feature Flags (PREMIUM)
✓✓✓
Use environment terminals
✓✓
Run Web IDE's Interactive Web Terminals (ULTIMATE ONLY)
✓✓
Add new team members
✓✓
Enable/disable branch protection
✓✓
Push to protected branches
✓✓
Turn on/off protected branch push for devs
✓✓
Enable/disable tag protections
✓✓
Edit project
✓✓
Add deploy keys to project
✓✓
Configure project hooks
✓✓
Manage Runners
✓✓
Manage job triggers
✓✓
Manage variables
✓✓
Manage GitLab Pages
✓✓
Manage GitLab Pages domains and certificates
✓✓
Remove GitLab Pages
✓✓
Manage clusters
✓✓
View Pods logs (ULTIMATE)
✓✓
Manage license policy (ULTIMATE)
✓✓
Edit comments (posted by any user)
✓✓
Manage Error Tracking
✓✓
Delete wiki pages
✓✓
View project Audit Events
✓✓
Manage push rules
✓✓
Switch visibility level
Transfer project to another namespace
Remove project
Delete issues
Disable notification emails
Force push to protected branches (4)
Remove protected branches (4)
另一种方式就是将该分之保护移除
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
Gitlab的角色许可——Permissions
Android Studio使用Git提交、分支、切换、合并
git 查看远程仓库信息
GitHub Flow – Scott Chacon
Migrate from svn to git | GitStack
Github的使用和创建,最近一个项目要用,先转过来
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服