gitlab项目创建后项目组成员不能提交代码

发布时间 2023-11-24 11:11:15作者: lutt123

提交报错如下:

git.exe push --progress "origin" main:main
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 8 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 294 bytes | 294.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
remote: GitLab: You are not allowed to push code to protected branches on this project.
To http://140.246.67.17:18081/airfieldarea/app-source.git
! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'http://140.246.67.17:18081/airfieldarea/app-source.git'

主要原因:

修改分支合并规则