remote: GitLab: You are not allowed to push code to protected branches on this project -
i trying push master branch of repo , failing so, since protected.
tried project settings , not see option protected branches. option see members.
remote: gitlab: not allowed push code protected branches on project. git@gitlab.ins.risk.regn.net:cmd/release.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed push refs 'git@gitlab.ins.risk.regn.net:cmd/release.git'
my repo has 1 branch, no contents in far.
see protected branches options of other repos not specific one.
new repo no contents , default branch.
have master
permission.
unfortunately not able upload image here somehow.
please suggest how push code master branch.
with no contents in far
that means there no master
branch protect yet, because empty repo not has one.
to "enable/disable branch protection", need master or owner of gitlab project (which are).
make sure:
- your first push
git push -u origin master
; - the remote
origin
reference right repo (git remote -v
); - your local ssh key right 1 (
ssh -t git@gitlab.ins.risk.regn.net
); - you member of
cmd
group.
Comments
Post a Comment