Skip to content

โ“๐Ÿ’ก ๊ณ ๋ฏผ ๋ฐ ๊นจ๋‹ฌ์Œ ์ 

KIMSEUNGGYU edited this page Jun 24, 2022 · 1 revision

๐Ÿ’กโ“ git branch ์ „๋žต

์ง€๊ธˆ ๊ณ„์† ์‹œ๋„ ์ค‘์ด๊ธด ํ•œ๋ฐ.. ์ค‘๊ฐ„ ๊ณผ์ •์„ ์ •๋ฆฌํ•˜๋ฉด

  • ์ดˆ๋ฐ˜์—๋Š” main, develop, G-*(ํ”ผ์ณ) ๋กœ ๊ตฌ์„ฑํ•ด์„œ
    ํ”ผ์ณ ๊ธฐ๋Šฅ ๊ตฌํ˜„ -> G-* => develop ์œผ๋กœ ๋จธ์ง€ (PR merge) -> ์ •์ƒ ๋™์ž‘ ํ™•์ธ -> develop => main ์œผ๋กœ ๋จธ์ง€ (squash merge)
    ํ•˜์ง€๋งŒ, ์ด๋ ‡๊ฒŒ ํ•˜๋‹ˆ๊น commit ์ด ์ง€์ €๋ถ„ํ•˜๊ฒŒ ์Œ“์—ฌ ๋ฐฉ๋ฒ• ๋ณ€๊ฒฝ
  • 2๋ฒˆ์งธ ๋ฐฉ๋ฒ•
    ํ”ผ์ณ ๊ธฐ๋Šฅ ๊ตฌํ˜„ -> G-* => develop ์œผ๋กœ ๋จธ์ง€ (Squash) -> ์ •์ƒ ๋™์ž‘ ํ™•์ธ -> G-* => main ์œผ๋กœ ๋จธ์ง€
    ์ด๋ ‡๊ฒŒ ํ•˜๋‹ˆ๊น, commit ์ด ๊น”๋”ํ•˜๊ฒŒ ์Œ“์ž„..
    ํ•˜์ง€๋งŒ, 1, 2๋ฒˆ ๋ชจ๋‘ github ์˜ PR ์„ ์ด์šฉํ•ด์„œ ํ–ˆ๋Š”๋ฐ ๊ธฐ๋Šฅ ๊ฐœ๋ฐœํ•  ๋•Œ ๋งˆ๋‹ค ๊ฐ™์€ ์ž‘์—…์„ ๋ฐ˜๋ณตํ•˜๊ณ  ์žˆ์–ด ๊ฐœ์„  ํ•„์š”
  • 3๋ฒˆ์งธ ๋ฐฉ๋ฒ• (์ƒ๊ฐ ์ค‘)
    1, 2๋ฒˆ์งธ ๋ฐฉ๋ฒ• ๋ชจ๋‘ github ์˜ PR ์„ ์ด์šฉํ•ด์„œ ํ–ˆ๋Š”๋ฐ ๊ฐ™์€ ์ž‘์—…์„ ๋ฐ˜๋ณตํ•˜๊ณ  ์žˆ์Œ.
    ๊ทธ๋ž˜์„œ G-* => develop ์œผ๋กœ ๋จธ์ง€ํ•  ๋•Œ๋Š” github ๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ์•Š๊ณ  local ํ„ฐ๋ฏธ๋„์—์„œ ํ•˜๊ณ ,(์ด๋•Œ merge ๋ฐฉ๋ฒ• ๊ณ ๋ฏผ์ค‘...)
    CI/CD ๋ฐ ์ˆ˜๋™ ํ…Œ์ŠคํŠธ ํ†ต๊ณผํ•˜๋ฉด G-* => main ๋จธ์ง€๋ฅผ gihtub ๋ฅผ ํ†ตํ•ด ํ•˜๋ฉด ๊ดœ์ฐฎ์„๋“ฏ (squash merge)