본문 바로가기
개발/게임) 개발관련

문제해결)Git) You are not allowed to push code to protected branches on this project.

by 테샤르 2021. 11. 24.

You are not allowed to push code to protected branches on this project.

git에서 Push를 하려고 하다 보니 해당 에러가 나는 상황이다.

간단하게 현재 브런치가 권한이 없어서 push를 하지 못한다는 상황이다.

git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v origin refs/heads/master:refs/heads/master 
Pushing to [깃주소]
POST git-receive-pack (2782 bytes)
remote: GitLab: You are not allowed to push code to protected branches on this project.
To [깃주소]
 ! [remote rejected]   master -> master (pre-receive hook declined)
error: failed to push some refs to '[깃주소]'
Completed with errors, see above
반응형

현재 브런치의 Push 권한을 확인하고 

그룹을 설정을 변경하면 된다.

변경하고 커밋하면 정상적으로 Push가 되는것을 확인할 수 있다.

 

★☆☆☆☆

 

반응형

댓글