프로그램 사용/gitlab & github
git push rejected by remote protected branch
구차니
2018. 9. 4. 18:54
몇가지 검색을 해봤는데.. 아무래도 이런 branch에 소유자가 아니면 push 할 수 없는 제한은
git 본연의 기능이 아닌 github나 gitlab의 확장된 기능인것으로 보인다.
[링크 : https://docs.gitlab.com/ee/user/project/protected_branches.html]
[링크 : https://help.github.com/articles/about-protected-branches/]
[링크 : https://git-scm.com/docs/git-push/2.3.5]
별다른 댓글은 없지만 pre-push hookup 스크립트를 이용해 구현한걸 보면
이런식으로 github/gitlab에서 적용해 놓은 걸수도?
[링크 : https://blog.ghost.org/prevent-master-push/]
+
2019.04.23
프로젝트 관리 메뉴에서 "Protected Branches"
하단의 Unprotect를 해주면 팀원이 Master가 아닌 Developer라도 push, merge가 가능해진다.