git push解决办法: [remote rejected] master -> master (pre-receive hook declined)

https://gitlab.com/gitlab-org/gitlab-recipes/-/issues/27

强推送的时候出现了这个

在最新版本的GitLab中,您可以在以下位置找到它:
您的GitLab项目>设置>存储库>受保护的分支

一项或两项设置(允许合并/推送)将其设置为:开发人员+维护人员或使人员成为维护人员。对我来说,这是有效的。谢谢你的解决方案

 

Your GitLab project > Settings > Repository > Protected Branches

One or both of the settings (Allowed to merge / push) set it to: Developers + Maintainers or make the person Maintainer.

原文地址:https://www.cnblogs.com/Galesaur-wcy/p/14821619.html