gitGraph
commit id: "init"
%% release ๋ธ๋์น
branch release
checkout release
commit id: "v1.0 ๋ฐฐํฌ"
%% develop ๋ธ๋์น
branch develop
checkout develop
commit id: "๊ฐ๋ฐ ์์"
%% feature ๋ธ๋์น
branch feature/login
checkout feature/login
commit id: "๋ก๊ทธ์ธ ๊ธฐ๋ฅ ๊ตฌํ"
commit id: "๋ก๊ทธ์ธ ์์ธ ์ฒ๋ฆฌ"
checkout develop
merge feature/login tag: "feature โ develop"
%% develop ์ถ๊ฐ ๊ฐ๋ฐ
commit id: "๊ธฐํ ๊ธฐ๋ฅ ๊ฐ๋ฐ"
%% release ๋ณํฉ
checkout release
merge develop tag: "develop โ release (v1.1)"
%% hotfix ๋ธ๋์น
branch hotfix/critical-bug
checkout hotfix/critical-bug
commit id: "์น๋ช
์ ๋ฒ๊ทธ ์์ "
checkout release
merge hotfix/critical-bug tag: "hotfix โ release"
%% (์ ํ) hotfix ๋ด์ฉ์ develop์๋ ๋ฐ์
checkout develop
merge hotfix/critical-bug tag: "hotfix โ develop"
release : ๋ฐฐํฌ ๋ธ๋์นdevelop : ๊ฐ๋ฐ ํตํฉ ๋ธ๋์นfeature : ๊ฐ๋ฐ ํตํฉ ๋ธ๋์น๋ก ๋ณํฉํ๊ธฐ์ ๊ธฐ์ ์ถ๊ฐ์ฉ ๋ธ๋์นhotfix : develop์ ๊ฑฐ์น์ง์๊ณ ๋ฐ๋ก release๋ก ๋ณํฉํ๊ธฐ ์ํ hotfix ๋ธ๋์น๋ธ๋์นํค๋/#์ด์๋ฒํธ-์์
๋ด์ฉ
ex) feature/#1-sign-in
Squash Merge๋ก ๋ฃ์ด์ฃผ๊ณ Commit ์ ๋ชฉ ์๋ก ๋ง๋ค์ด์ฃผ๊ธฐ
Major/Minor/PATCH
MAJOR (์ฃผ๋ฒ์ )
๊ธฐ์กด๊ณผ ํธํ๋์ง ์๋ ๋ณ๊ฒฝ์ด ์์ ๋ ๋ณ๊ฒฝ