Skip to content

๐ŸŒด๊นƒ ๋ธŒ๋žœ์น˜ ์ „๋žต

easyhak edited this page Nov 5, 2024 · 6 revisions

๋ธŒ๋žœ์น˜ ์ข…๋ฅ˜์™€ ๋„ค์ด๋ฐ ๊ทœ์น™

๋ฉ”์ธ ๋ธŒ๋žœ์น˜

๋ธŒ๋žœ์น˜ ์ด๋ฆ„ ์„ค๋ช…
main ์ตœ์ข… ๋ฐฐํฌ ๋ฒ„์ „ ์ฝ”๋“œ๊ฐ€ ํฌํ•จ๋œ ๋ฉ”์ธ ๋ธŒ๋žœ์น˜
dev ๋‹ค์Œ ๋ฐฐํฌ๋ฅผ ์ค€๋น„ํ•˜๋Š” ๋ธŒ๋žœ์น˜๋กœ, feature์™€ hotfix๊ฐ€ ๋ณ‘ํ•ฉ๋จ

๊ธฐ๋Šฅ๋ณ„ ๋ธŒ๋žœ์น˜

๋ธŒ๋žœ์น˜ ์œ ํ˜• ๋„ค์ด๋ฐ ๊ทœ์น™ ์„ค๋ช…
feature feature/{๊ธฐ๋Šฅ์ด๋ฆ„} ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ ์ถ”๊ฐ€ ์ž‘์—… ์‹œ ์‚ฌ์šฉ

์˜ˆ์‹œ: feature/login, feature/ui-bug, feature/payment-issue

๋ธŒ๋žœ์น˜ ๊ทœ์น™

๊ธฐ๋ณธ ๊ทœ์น™

  • ์†Œ๋ฌธ์ž ๋ฐ ํ•˜์ดํ”ˆ(-): ๋„ค์ด๋ฐ์€ ์†Œ๋ฌธ์ž์™€ ํ•˜์ดํ”ˆ์„ ์‚ฌ์šฉํ•˜์—ฌ ๋‹จ์–ด๋ฅผ ๊ตฌ๋ถ„ํ•ฉ๋‹ˆ๋‹ค.
  • ๋ช…ํ™•ํ•œ ์ด๋ฆ„: ๊ธฐ๋Šฅ์ด๋‚˜ ๋ฒ„๊ทธ์˜ ํ•ต์‹ฌ ๋‚ด์šฉ์„ ๋‹ด์•„ ํ•œ๋ˆˆ์— ์ดํ•ด ๊ฐ€๋Šฅํ•˜๋„๋ก ํ•ฉ๋‹ˆ๋‹ค.
  • ์งง๊ณ  ๊ฐ„๊ฒฐํ•˜๊ฒŒ: ๋„ˆ๋ฌด ๊ธธ์ง€ ์•Š๊ฒŒ ํ•˜๋ฉฐ, ํ•œ ๊ฐ€์ง€ ์ž‘์—…์ด๋‚˜ ๋ชฉ์ ์— ์ง‘์ค‘ํ•ฉ๋‹ˆ๋‹ค.

๋ณ‘ํ•ฉ ๊ทœ์น™

  • main ๋ธŒ๋žœ์น˜๋Š” ์ง์ ‘ ์ปค๋ฐ‹ํ•˜์ง€ ์•Š์œผ๋ฉฐ PR(Pull Request)์„ ํ†ตํ•ด์„œ๋งŒ ๋ณ€๊ฒฝ์ด ์ด๋ฃจ์–ด์ง‘๋‹ˆ๋‹ค.
  • ๋ชจ๋“  ๊ธฐ๋Šฅ์€ develop ๋ธŒ๋žœ์น˜๋กœ ๋ณ‘ํ•ฉํ•˜๋ฉฐ, ๋ณ‘ํ•ฉ ์ „ ์ฝ”๋“œ ๋ฆฌ๋ทฐ๋ฅผ ๋ฐ˜๋“œ์‹œ ์™„๋ฃŒํ•ฉ๋‹ˆ๋‹ค.
  • **๊ธด๊ธ‰ ์ˆ˜์ • ์‚ฌํ•ญ(hotfix)**๋งŒ main ๋ธŒ๋žœ์น˜๋กœ ์ง์ ‘ ๋ณ‘ํ•ฉ ๊ฐ€๋Šฅํ•˜๋ฉฐ, ๋ณ‘ํ•ฉ ํ›„ develop์—๋„ ๋ฐ˜์˜ํ•ฉ๋‹ˆ๋‹ค.

๊ธฐํƒ€ ๊ทœ์น™

  • ์ž‘์—… ์™„๋ฃŒ ์‹œ์ : ๋ชจ๋“  ์ž‘์—…์ด ๋๋‚œ ๋ธŒ๋žœ์น˜๋Š” ์‚ญ์ œํ•˜์—ฌ ๋ธŒ๋žœ์น˜ ๊ด€๋ฆฌ๋ฅผ ๊ฐ„์†Œํ™”ํ•ฉ๋‹ˆ๋‹ค.
  • PR ๋ฉ”์‹œ์ง€: PR ๋ฉ”์‹œ์ง€๋Š” ํ•ด๋‹น ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€ ๊ทœ์น™์„ ์ค€์ˆ˜ํ•˜๊ณ , ์ž‘์—… ๋ชฉ์ ๊ณผ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์„ ๊ฐ„๋‹จํžˆ ์„ค๋ช…ํ•ฉ๋‹ˆ๋‹ค.

๋ธŒ๋žœ์น˜ ์ „๋žต

  • Git Flow ์ „๋žต์„ ๊ธฐ๋ฐ˜์œผ๋กœ dev ๋ธŒ๋žœ์น˜๋ฅผ ์ถ”๊ฐ€ํ•˜์—ฌ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
gitGraph
   commit id: "์ดˆ๊ธฐ ์ปค๋ฐ‹" tag: "main"
   branch dev
   checkout dev
   commit id: "ํ”„๋กœ์ ํŠธ ๊ตฌ์กฐ ์„ค์ •"

   branch feature/login
   checkout feature/login
   commit id: "๋กœ๊ทธ์ธ ํผ UI ์ถ”๊ฐ€"
   commit id: "๋กœ๊ทธ์ธ ๊ธฐ๋Šฅ ๊ตฌํ˜„"
   checkout dev
   merge feature/login tag: "feature/login ๋ธŒ๋žœ์น˜๋ฅผ dev์— ๋ณ‘ํ•ฉ"

   branch feature/user-profile
   checkout feature/user-profile
   commit id: "์‚ฌ์šฉ์ž ํ”„๋กœํ•„ UI ์ถ”๊ฐ€"
   commit id: "ํ”„๋กœํ•„์„ ๋ฐฑ์—”๋“œ์™€ ์—ฐ๊ฒฐ"
   checkout dev
   merge feature/user-profile tag: "feature/user-profile ๋ธŒ๋žœ์น˜๋ฅผ dev์— ๋ณ‘ํ•ฉ"

   branch hotfix/navbar
   checkout hotfix/navbar
   commit id: "๋„ค๋น„๊ฒŒ์ด์…˜๋ฐ” ๋ฐ˜์‘ํ˜• ๋ฌธ์ œ ์ˆ˜์ •"
   checkout main
   merge hotfix/navbar tag: "hotfix/navbar ๋ธŒ๋žœ์น˜๋ฅผ main์— ๋ณ‘ํ•ฉ"
   checkout dev
   merge hotfix/navbar tag: "hotfix/navbar ๋ธŒ๋žœ์น˜๋ฅผ dev์— ๋ณ‘ํ•ฉ"

   checkout main
   merge dev tag: "dev ๋ธŒ๋žœ์น˜๋ฅผ main์— ๋ณ‘ํ•ฉํ•˜์—ฌ ๋ฐฐํฌ"
   commit id: "์ตœ์‹  ๋ณ€๊ฒฝ ์‚ฌํ•ญ ๋ฐฐํฌ"
Loading

๐Ÿ›Œ๋“œ๋ฆผ ๋‹ค์ด์–ด๋ฆฌ

๐Ÿ‘‹ ํ”„๋กœ์ ํŠธ ์†Œ๊ฐœ
๐Ÿ“บ ์ฃผ์š” ๊ธฐ๋Šฅ
๐ŸŽจ ๊ธฐํš ๋ฐ ๋””์ž์ธ
๐Ÿ’ก ๊ธฐ์ˆ  ์Šคํƒ

๐Ÿ‘คํŒ€ ๋ฌธํ™”

๐Ÿค™ ๊ทธ๋ผ์šด๋“œ ๋ฃฐ
๐Ÿ™ ๊นƒ ์ปค๋ฐ‹ ์ปจ๋ฒค์…˜
๐ŸŒด ๊นƒ ๋ธŒ๋žœ์น˜ ์ „๋žต
๐Ÿ’ก Lint

๐ŸงพํšŒ์˜๋ก

๐Ÿ–Š๏ธ๋ฐ์ผ๋ฆฌ ์Šคํฌ๋Ÿผ
๐Ÿƒ์Šคํ”„๋ฆฐํŠธ ํšŒ์˜
๐Ÿ‘จโ€๐Ÿซ๋ฉ˜ํ† ๋ง ์ผ์ง€
๐Ÿค”ํšŒ๊ณ 

๐Ÿ—ํŠธ๋Ÿฌ๋ธ” ์ŠˆํŒ…

๐ŸŽ€ํ•™์Šต

Clone this wiki locally