-
Notifications
You must be signed in to change notification settings - Fork 1
Git Branch Rule
SeoSeunghun edited this page Aug 20, 2023
·
2 revisions
git flow
์ ๋ต์ ์ฌ์ฉํด์ ๊ฐ branch๋ฅผ ๊ด๋ฆฌํ๋ค.
- main : ์ ํ์ผ๋ก ์ถ์๋ ์ ์๋ ๋ธ๋์น
- develop : ๋ค์ ๋ฐฐํฌ๋ฅผ ์ํด ๊ฐ๋ฐํ๋ ๋ธ๋์น
- base : ์ด์๋ฅผ ํด๊ฒฐํ๋ ๊ธฐ๋ฅ์ ๊ตฌํํด ํฉ์น ๋ธ๋์น, ๊ฐ์์ ID์ ๋ด๋นํ ์ด์ ๋ฒํธ๋ฅผ ๋ช
์ํ๋ค.
${username}/base-${issue number}
- ex)
grolarkim/base-#123
- feature : ๊ฐ ๊ธฐ๋ฅ์ ๊ฐ๋ฐํ๋ ๋ธ๋์น, ๊ฐ์์ ID์ ๋ด๋นํ ์ด์ ๋ฒํธ, ๊ฐ๋ฐํ ๊ธฐ๋ฅ์ ๋ช
์ํ๋ค.
${username}/${type}-${issue number}-${feature details}
- ex)
protoseo/refactor-#111-cicd-template
- ๋ธ๋์น๋ฅผ ๋ง๋ค๊ธฐ ์ ์, Issue๋ฅผ ๊ฐ์ ํ ๋นํ๋ค.
- develop ๋ธ๋์น๋ก ๊ฐ๊ธฐ ์ํด์๋ base ๋ธ๋์น๋ฅผ ๊ฑฐ์ณ์ผ ํ๋ค.
์ Git flow ๋ฅผ ์ฌ์ฉํ๊ฒ ๋์์๊น?
์๋ก ํ์ ์ ์งํํ๋ฉด์, ์๋ก์ ๋ ๋ฆฝ์ ์ธ ๊ฐ๋ฐ ํ๊ฒฝ์ ๋ณด์ฅํ๊ธฐ ์ํด์ Git flow๋ฅผ ์ฌ์ฉํ์๋ค.