Gitlab the develop role of the person who does not have permission to submit an issue solution

Source: Internet
Author: User

Problem

This is the case, recently with a few colleagues engaged in some things, plan to build a warehouse in Gitlab, and then co-development.

I built the warehouse, added several other colleagues, the role assigned to develop.

After the initial code is submitted to the master branch, they are developed after using Sourcetree to pull the replacement code, and then submit the discovery cannot be submitted , prompting no permissions .

As follows:

Error message:

Git-c diff.mnemonicprefix=false-c Core.quotepath=false push-v Origin Master:master
Pushing to Http://xxx/xxx/xxx_HTML.git

POST git-receive-pack (47642 bytes)

Remote: gitlab:you don ' t has permission[K

To Http://xxx/xxx/xxx_HTML.git
! [Remote rejected] master-and master (pre-receive Hook declined)
Error:failed to push some refs to ' http://xxx/xxx/xxx_HTML.git '

Solution Solutions

The following Gitlab are studied, and the Final solution is:

In the project "Setting" in the "Protected branches" can set which branches are protected, by default, the "master" branch is in the protected State, the develop role of the person is unable to submit to the Master branch, in the following " Developers can push "hit the hook on it."

You can also make a separate setting for a branch and which branches can be submitted

Finish

Original Address-http://www.cnblogs.com/xxcanghai/p/5009926.html

Gitlab the develop role of the person who does not have permission to submit an issue solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.