<aside> ✏️

목차

</aside>

상황

과정

아래와 같은 Git 전략을 활용하기로 하였다.

우리팀의 Branch Protection Rules

우리팀의 Branch Protection Rules

이중 주요한 dev와 main 브랜치에 특정 룰을 지정하고자 한다.

dev 브랜치: PR 2명 approve 되어야 merge & 삭제 금지

Repository의 Setting > Code and automation-Branches에서 설정할 수 있다.

옵션들은 크게 Protect matching branches와 Rules applied to everyone including administrators로 나뉘며, 순서대로 살펴보면 다음과 같다.

Protect matching branches

image.png

image.png