gitlab没有push权限,重设账号密码仍然不行,问题解决

简介: 这篇文章讲述了解决GitLab中因权限问题导致的无法推送代码到受保护分支的问题,通过提升用户权限至维护者解决了问题。

一 问题描述

$ git push
Enumerating objects: 570, done.
Counting objects: 100% (570/570), done.
Delta compression using up to 12 threads
Compressing objects: 100% (541/541), done.
Writing objects: 100% (560/560), 75.00 MiB | 4.18 MiB/s, done.
Total 560 (delta 166), reused 10 (delta 5)
remote: Resolving deltas: 100% (166/166), completed with 9 local objects.
remote: GitLab: You are not allowed to push code to protected branches on this project.
To http://jiemi.taoimage.com:10079/yangxiaofeng/Calibration.git
! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to '

二 权限问题

开发者权限不能提交push,醉了。

改成维护者,有push权限了。

三 参考链接

(143条消息) [Git]Gitlab设置分支的push权限_XiaoH0_0的博客-CSDN博客_git push权限设置

git创建分支 - 知乎 (zhihu.com)

(143条消息) Git pull 或 push 提示:The requested URL returned error: 403_lzcerT的博客-CSDN博客_git push403

git push 报错 pre-receive hook declined - 简书 (jianshu.com)

相关文章
|
5月前
|
安全 算法 项目管理
GitLab权限级别介绍
GitLab权限级别介绍
916 4
|
2月前
|
Ruby
GitLab: Push operation timed out
本文描述了在推送AOSP源码到GitLab时遇到的超时问题,并提供了通过在GitLab服务器上禁用LFS检查功能来解决这个问题的方法。
38 1
|
5月前
|
项目管理 数据安全/隐私保护
GitLab中用户的五种权限 Guest、Reporter、Developer、Master、Owner
GitLab中用户的五种权限 Guest、Reporter、Developer、Master、Owner
|
开发工具 git
Gitlab提交代码:You are not allowed to push code to this project.fatal: unable to access requested URL
Gitlab提交代码:You are not allowed to push code to this project.fatal: unable to access requested URL
839 0
|
jenkins 持续交付 应用服务中间件

相关实验场景

更多