-
Notifications
You must be signed in to change notification settings - Fork 10
๐๐ป branch, merge ์ ๋ต
S021_๋ฐ์ ์ edited this page Nov 5, 2021
·
7 revisions
-
Git-flow ์ฌ์ฉ
- hotfix ์๋ gitflow
- feature branch์์ ์์ ํ develop์ merge
- ๋งค์ฃผ ๋ชฉ์์ผ 19:00 ์ ์ main์ merge
- ํ๋์ ํ๋ฉด๋จ์๋ก release
-
branch ์ค๋ช
- feature : ์๋ก์ด ๊ธฐ๋ฅ์ ๊ฐ๋ฐํ๋ ๋ธ๋์น [feature/๊ธฐ๋ฅA]
- develop : ๊ฐ๋ฐํ ๊ธฐ๋ฅ๋ค์ ํฉ์น๋ ๋ธ๋์น [develop]
- release : ์ด๋ฒ ๋ฐ๋ชจ๋ฅผ ์ค๋นํ๋ ๋ธ๋์น [release/0.1]
- main : ๋ชจ๋ ์ค๋น๊ฐ ์๋ฃ๋ ๋ฐ๋ชจ๋ฅผ ์ฌ๋ฆฌ๋ ๋ธ๋์น
-
fetch & rebase : develop์์ feature๋ก
// origin์ develop์์ ๋ณ๊ฒฝ ์ฌํญ์ ๊ฐ์ ธ์จ๋ค. > git switch develop > git fetch origin develop > git rebase origin/develop // ์์ ํ ๋ธ๋์น๋ฅผ ์์ฑํ๋ค. > git switch -c feature/๊ธฐ๋ฅA
์๊ฒฉ ์ ์ฅ์์ ๋ธ๋์น๋ฅผ ๊ฐ์ ธ์ค๋ ๋ฐฉ๋ฒ : https://yztech.tistory.com/32
-
commit & merge : feature์์ develop์ผ๋ก
// ํ์ฌ ์์ ์ค์ธ feature/๊ธฐ๋ฅA ๋ธ๋์น์ผ ๋ // push ์ origin์ develop์์ ๋ณ๊ฒฝ ์ฌํญ์ ๊ฐ์ ธ์จ๋ค. > git fetch origin develop > git rebase origin/develop // conflict๊ฐ ๋๋ค๋ฉด ํด๊ฒฐํ๊ณ pushํ๋ค. > git push origin feat/๊ธฐ๋ฅA
-
๋ณธ์ธ PR ์ ์ต์ 2๋ช ์๊ฒ ๋ฆฌ๋ทฐ๋ฐ์ ํ ๋ณธ์ธ์ด merge ํ๋ค.
-
merge ํ ํด๋น ๋ธ๋์น๋ฅผ ์ญ์ ํ๋ค.
- issue - task
- pr - task
- commit - ์์ ๋กญ๊ฒ (ex. viewController ๊ตฌํ?, bind method ์ถ๊ฐ..)