Skip to content

Git convention

Jin Yu edited this page Apr 6, 2024 · 4 revisions

Git-Flow

  • feature
  • develop
  • release
  • production (=main =master)
  • hotfix

Process

  1. μƒˆ 브랜치 생성은 Develop을 κΈ°μ€€μœΌλ‘œ ν•œλ‹€.
  2. Feature λΈŒλžœμΉ˜μ—μ„œ μž‘μ—…μ„ μ‹ λ‚˜κ²Œ ν•œλ‹€. (Feat/login)
  3. κΉƒν—ˆλΈŒμ—μ„œ Develop <- Feature PR을 생성, μ½”λ“œλ¦¬λ·° ν›„ Develop <- Feature merge [μ΄λ•Œ build Action]
  4. μ–΄λŠ 정도 배포 ν•  λ•Œκ°€ λ˜μ—ˆμœΌλ©΄, Develop 브랜치λ₯Ό κΈ°μ€€μœΌλ‘œ release 브랜치λ₯Ό μƒμ„±ν•œλ‹€. (Release/1.1.12)
  5. Release λΈŒλžœμΉ˜μ—μ„œ 버저닝과 QAλ₯Ό μ§„ν–‰ν•œλ‹€.
  6. κΉƒν—ˆλΈŒμ—μ„œ production <- release PR을 생성 ν›„ merge [μ΄λ•Œ Release & Tag Action]
  7. ν„°λ―Έλ„μ—μ„œ Develop <- production λ°± 머지

git-flow 참고 자료

Basic

  1. μž‘μ€ κΈ°λŠ₯ ν•˜λ‚˜ κ΅¬ν˜„ ν•  λ•Œ λ§ˆλ‹€ μ»€λ°‹ν•˜κΈ°
  2. μ„  issue λ°œν–‰ -> ν›„ feature λΈŒλžœμΉ˜μ—μ„œ μž‘μ—…
  3. PR은 μž‘μ—… λΆ„λŸ‰μœΌλ‘œ μ •μƒμž‘λ™ λ‚΄μš©μ΄ μžˆλ‹€λ©΄ λ¨Έμ§€ν•˜λŠ” μ‹μœΌλ‘œ μž‘μ€ λ‹¨μœ„μ˜ μž‘μ—…
  4. PR은 μž‘μ—…μ΄ λλ‚˜μ„œ 리뷰λ₯Ό 받을 수 μžˆλŠ” 상황 / 아닐 μ‹œμ—λŠ” draft PR

Branch name

  • ν˜•μ‹: feature/{κ΅¬ν˜„ κΈ°λŠ₯}
  • μ˜ˆμ‹œ: feature/review, feature/login, feature/main ...

브랜치λ₯Ό μƒˆλ‘œ 생성할 λ•Œμ—λŠ” develop 브랜치λ₯Ό 기점으둜 μƒμ„±ν•˜κΈ°

Commit Message

  • ν˜•μ‹: μž‘μ—…μœ ν˜•: μž‘μ—…λ‚΄μš©
  • μ˜ˆμ‹œ: add: login 파일 μΆ”κ°€, feat: login 둜직
  • μž‘μ—… μœ ν˜•
    • 파일 μΆ”κ°€ : add
    • 버그 μˆ˜μ • : fix
    • λ¦¬νŒ©ν„°λ§ : refactor
    • 파일 μ‚­μ œ : remove
    • κΈ°λŠ₯ μΆ”κ°€ : feat
    • λ¬Έμ„œ μˆ˜μ • : docs
    • 주석 μΆ”κ°€ : comment
  • μž‘μ—… λ‚΄μš©μ€ ν•œκ΅­μ–΄/μ˜μ–΄ 상관 μ—†μŒ
  • μž‘μ€ κΈ°λŠ₯ ν•˜λ‚˜ κ΅¬ν˜„ ν•  λ•Œ λ§ˆλ‹€ μ»€λ°‹ν•˜κΈ°

Issue Title

  • ν˜•μ‹: [μž‘μ—…μœ ν˜•] μž‘μ—…λ‚΄μš©
  • μ˜ˆμ‹œ: [Feat] 리뷰 λͺ©λ‘

PR Title

  • ν˜•μ‹: [μž‘μ—…μœ ν˜•/#이슈번호] μž‘μ—…λ‚΄μš©
  • μ˜ˆμ‹œ: [Feat/#59] 리뷰 μ“°κΈ° κ΅¬ν˜„ μ™„λ£Œ
Clone this wiki locally