Skip to content

Git Flow ์ „๋žต

peeerr edited this page Nov 14, 2024 · 2 revisions

๋ธŒ๋žœ์น˜ ๊ตฌ์กฐ

๊ฐ ๋ธŒ๋žœ์น˜๋Š” Base๊ฐ€ ๋˜๋Š” ๋ธŒ๋žœ์น˜์— ๋งž์ถฐ ๊ณ„์ธต ๊ตฌ์กฐ๋ฅผ ๋‚˜ํƒ€๋‚ธ๋‹ค.

  • master: ๋ฐฐํฌ ๋ธŒ๋žœ์น˜. ๋ฌธ์ œ๊ฐ€ ์—†๋Š” ์•ˆ์ •๋œ ๋ธŒ๋žœ์น˜

    • develop: ์ฃผ์ฐจ๋ณ„ ์ž‘์—…์ด ์™„๋ฃŒ๋œ ํ›„ ํ…Œ์ŠคํŠธ๋ฅผ ๊ฑฐ์น˜๋Š” ๋ธŒ๋žœ์น˜

      • weekly/{์ฃผ์ฐจ}: ๊ฐ ์ฃผ์ฐจ๋ณ„ ํ• ๋‹น๋œ ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•˜๋Š” ๋ธŒ๋žœ์น˜ (์˜ˆ: weekly/3)

        • feature/{์ด์Šˆ๋ฒˆํ˜ธ}-{๊ธฐ๋Šฅ๋ช…}: ํŠน์ • ๊ธฐ๋Šฅ์„ ๊ฐœ๋ฐœํ•˜๊ธฐ ์œ„ํ•œ ๋ธŒ๋žœ์น˜ (์˜ˆ: feature/3-login)
    • review: ๋ฆฌ๋ทฐ ๋ธŒ๋žœ์น˜. ๋ฆฌ๋ทฐ๊ฐ€ ํ•„์š”ํ•  ๋•Œ, ์ด ๋ธŒ๋žœ์น˜๋กœ PR ์š”์ฒญ


์ž‘์—… ์‹œ์ž‘ ์ „ (Admin ์—ญํ• )

๋งค ์ฃผ์ฐจ๋งˆ๋‹ค weekly/{์ฃผ์ฐจ} ๋ธŒ๋žœ์น˜๋ฅผ ์ƒ์„ฑํ•œ๋‹ค.


ํŒ€์› ์ž‘์—… ์‹œ๋‚˜๋ฆฌ์˜ค

1. weekly ๋ธŒ๋žœ์น˜ pull ๋˜๋Š” fetch& rebase ์ˆ˜ํ–‰ํ•œ๋‹ค.

2. weekly/{์ฃผ์ฐจ} ๋ธŒ๋žœ์น˜๋ฅผ Base๋กœ ํ•˜์—ฌ feature/{๊ธฐ๋Šฅ๋ช…} ๋ธŒ๋žœ์น˜๋ฅผ ์ƒ์„ฑํ•œ๋‹ค.

3. feature/{์ด์Šˆ๋ฒˆํ˜ธ}-{๊ธฐ๋Šฅ๋ช…} ๋ธŒ๋žœ์น˜์—์„œ ์ปค๋ฐ‹ ์ปจ๋ฒค์…˜์„ ์ฐธ๊ณ ํ•˜์—ฌ ์ž‘์—…์„ ์ง„ํ–‰ํ•œ๋‹ค.

4. ์ž‘์—… ์™„๋ฃŒ ํ›„, weekly/{์ฃผ์ฐจ} ๋ธŒ๋žœ์น˜๋กœ PR ์š”์ฒญํ•œ๋‹ค.

5. ํ•œ ๋ช… ์ด์ƒ์˜ ํŒ€์›์ด PR์„ Approveํ•ด์•ผ๋งŒ Merge๊ฐ€ ๊ฐ€๋Šฅํ•˜๋‹ค.

6. Approve ๋ฐ›์€ ํ›„, Admin์ด PR์„ Mergeํ•  ๋•Œ๊นŒ์ง€ ๊ธฐ๋‹ค๋ฆฐ๋‹ค.

ํ•ด๋‹น ์ฃผ์ฐจ์˜ Task๊ฐ€ ๋๋‚  ๋•Œ๊นŒ์ง€ ์œ„ ๊ณผ์ •์„ ๋ฐ˜๋ณตํ•œ๋‹ค.


์ž‘์—… ์™„๋ฃŒ ํ›„ (Admin ์—ญํ• )

1. Admin์ด weekly/{์ฃผ์ฐจ} ๋ธŒ๋žœ์น˜๋ฅผ develop ๋ธŒ๋žœ์น˜์— PR & Mergeํ•œ๋‹ค.

2. Admin์ด develop ๋ธŒ๋žœ์น˜๋ฅผ master ๋ธŒ๋žœ์น˜์— PR & Mergeํ•œ๋‹ค.

3. ๋ฆฌ๋ทฐ๊ฐ€ ํ•„์š”ํ•œ ์ฃผ์ฐจ์—๋Š”, master ๋ธŒ๋žœ์น˜์—์„œ review ๋ธŒ๋žœ์น˜๋กœ PR ์š”์ฒญํ•œ๋‹ค.


์ž‘์—… ์™„๋ฃŒ ํ›„ (ํŒ€์› ์—ญํ• )

๋กœ์ปฌ์— ์žˆ๋Š” ๋ธŒ๋žœ์น˜์™€ ๊นƒํ—ˆ๋ธŒ์— ์žˆ๋Š” ๋ธŒ๋žœ์น˜ ๋ฒ„์ „ ์ฐจ์ด ์—†์• ๊ธฐ (=๋™๊ธฐํ™” ํ•˜๊ธฐ)

Clone this wiki locally