一 问题描述
$ 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权限设置
(143条消息) Git pull 或 push 提示:The requested URL returned error: 403_lzcerT的博客-CSDN博客_git push403