반응형
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

테크매니아

Git: Branch 네이밍 컨벤션 본문

카테고리 없음

Git: Branch 네이밍 컨벤션

SciomageLAB 2024. 10. 3. 16:40
반응형

브랜치 관리

브랜치 종류

  • wip : 작업 진행 중인 임시 브랜치
    • feature-1064-add_something 브랜치에 대한 WIP 브랜치는 다음과 같음 Ex. wip-1064-add_something wip 브랜치는 feature-1064-add_something 브랜치에 merge후 삭제
  • bug
  • hotfix : 일정 또는 상황에 의해서 임시 조치 하는 브랜치
    • hotfix 처리 방법
      • hotfix 브랜치 생성 후 푸시
      • 테스트 후 브랜치 태그를 생성
      • 브랜치 태그로 임시 배포
        - v0.0.1-rc1+x86-hotfix-4302-change_route_url
      • bug 브랜치 생헝
      • hotfix 브랜치와 호환성을 유지하면서 bug 브랜치에서 문제를 해결
      • 최종 develope → main → release 브랜치 순서로 병합
  • feature
  • develop
  • experimental
  • main or master
  • release

브랜치 네이밍 규칙

Best practice

--

Ex. bug-10001-face-detection, feature-20034-File-load

  • 구분자는 Hyphend이나 Underscore를 사용합니다.
  • 숫자만 쓰는 것을 피합니다.
  • 지나치게 길고 세세한 브랜치 네이밍은 피합니다.
    Ex. wip_login_module_which_will_used_in_the_public_websitewip_login_module_which_will_used_in_the_internal_website

참고 문헌

https://learn.openwaterfoundation.org/owf-learn-git/workflow/branch-naming/

https://dpericich.medium.com/how-to-write-great-git-branch-names-to-improve-your-team-3345aee7fc2a

반응형