Git-flow
- Feature > Develop > Main
โ โ
Release โ โ
Hotfix
- Feature : ๊ธฐ๋ฅ๊ฐ๋ฐ
- Develop : ๋ค์ ๋ฒ์ ๊ฐ๋ฐ(Main ๋ฐ๋ท ์ )
- Main : ์ถ์๋ ์์ (or ์ถ์ ๋จ)
- Release : Develop์ bug-fix(QA๋ฅผ ์ํจ)
- Develop์์ ๋ธ๋์น ๋
- Develop, Main์ merged
- Main์ ๋ฒ์ +1
- Hotfix : ์ถ์๋ ์ ๋ค์ bug-fix
- Main์์ ๋ธ๋์น ๋
- Develop, Main์ merged
- Main์ ๋ฒ์ +1
- ๋ฒ๊ทธ ์์ ๊ณผ ๊ธฐ๋ฅ ๊ฐ๋ฐ์ ๋ณ๋ ฌ์ ์ผ๋ก ํ ์ ์๋ค.
GitHub-flow
- Feature > Main
- Git-flow์์ Develop, Relaese, Hotfix, Feature๋ฅผ Feature์์ ํ๋ฒ์
- ์ฌ๋ฌ ๋ฒ์ ๊ด๋ฆฌ x, ์๊ท๋ชจ ํ์ ์ ํฉ
GitLab-flow
- Master > Pre-Production > Production
- Pre-Production : ์คํ ์ด์ง ํ๊ฒฝ ๊ฐ์ ๊ฒ
Trunk-based Development
- main ๋ธ๋์น ๋ฑ ํ๋.
- ์ฆ, ์์ ์ฝ๋๋ฅผ main์ผ๋ก ๋ฐ๋ก push
- ์ด๋ฐ ์ํฉ์ผ ๋ ์ ํฉ
- Pair Programming(ํ๋ช ์ฝ๋ ์์ฑ, ํ๋ช ๊ฒํ )
- Mob Programming(๋์ผํ ๊ณต๊ฐ, ์ปดํจํฐ์์ ๋์ผํ ์์ ์)
- ๋ฆด๋ฆฌ์ฆ๋ฅผ ํ์ ํ๋ ์ฝ๋๋ฅผ push
- ํผ์ณํ๋๊ทธ ๋ฑ์ ์ด์ฉํด์ ์์ ์ด ๋ฏธ์๋ฃ ๋ ์ฝ๋๋ ์จ๊ธฐ๊ธฐ
- ์๊ท๋ชจ ๋ฐฐ์น, ๋น ๋ฅธ ๋น๋