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