상세 컨텐츠

본문 제목

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

GitHub,GitLab

by 강정_DEV 2022. 7. 13. 12:25

본문

728x90

회사에서 타 팀에서 커밋이 안된다고 원인을 물어보는 일이 있었다.

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

해당 에러는 push 하려는 branch 가 Protected로 설정되어서 push 할 수 없다는 문구였다.

 

Gitlab에서 해당 Project에 들어가서 해당 Protected를 해제하거나 권한을 설정하면 해결이 될 것이라 보고 관리자로 로그인을 해서 설정을 수정해 주었다.

 

- GitLab Project -> Settings -> Repository -> Protected Branches -> [Expand] 버튼 클릭

해당 프로젝트의 Settings > Repository 메뉴에서 Protected Branches 항목의 Expand 버튼을 클릭하면 Protected Branches의 설정을 할 수 있다.

 

하단에 Protected Branches 리스트에 Allowed to merge와 Allowed to push권한 설정을 수정해주거나 UnProtected 버튼을 클릭하여 해당 브런치에 대하여 Protected Branches에서 제외하면 push 및 merge가 가능해진다.

 

반응형

관련글 더보기

댓글 영역