提交报错如下:
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'
主要原因:
修改分支合并规则
标签:git,项目,100%,gitlab,组成员,objects,done,push,main From: https://www.cnblogs.com/lutt123/p/17853301.html