I have a project in gitlab. My colleague has a maintaner status there. I have a developer status. He asked me to push a files there with a new branch. Then to merge request, in order he could check it and accept. But when I push, I get the following error:
remote: GitLab: You are not allowed to create protected branches on this project.
To ".../..../myProject"
! [remote rejected] myBranch -> myBranch (pre-receive hook declined)
error: failed to push some refs to '.../..../myProject'
Here's what I did:
git clone .... // cloned the project as there were already files
// then added my files to the cloned project, created a new branch and did add
git add.
git commit -m "..."
git push origin myBranch

