our github flow - connect-foundation/2019-07 GitHub Wiki

๊ธฐ์กด์˜ git flow์˜ branch ๊ตฌ์„ฑ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์•„์š”

  1. ๋ฉ”์ธ ๋ธŒ๋žœ์น˜(Main branch)
  2. ํ”ผ์ฒ˜ ๋ธŒ๋žœ์น˜(Feature branch) ๋˜๋Š” ํ† ํ”ฝ ๋ธŒ๋žœ์น˜(Topic branch)
  3. ๋ฆด๋ฆฌ์Šค ๋ธŒ๋žœ์น˜(Release branch)
  4. ํ•ซํ”ฝ์Šค ๋ธŒ๋žœ์น˜(Hotfix branch)

์ผ๋ฐ˜์ ์œผ๋กœ ํŒ€์›์€ ํ”ผ์ฒ˜๋ธŒ๋žœ์น˜์—์„œ ์ž‘์—…ํ•˜๊ณ , mergeํ•˜๋Š” ๊ตฌ์กฐ ์ž…๋‹ˆ๋‹ค.

์•„์‰ฌ์› ๋˜ ์ 

  1. ๋ณต์žกํ•˜๋‹ค.
  2. ๊ฐ์ž ์ €์žฅ์†Œ๋ฅผ forkํ•ด์„œ ์ž‘์—…ํ•˜๊ณ  ์‹ถ์€ ๊ฒฝ์šฐ ์–ด๋–ป๊ฒŒ ํ•ด์•ผํ•˜์ง€?
  3. ์ฝ”๋“œ ๋ฆฌ๋ทฐ๋Š” ์–ด๋–ป๊ฒŒํ•˜์ง€?

git flow์˜ ์žฅ์ ์„ ์‚ด๋ฆฌ๋ฉด์„œ...

๋‹จ์ ์„ ๋ณด์™„ํ•  ๋ฐฉ๋ฒ•์ด ๋ญ‘๊ฐ€ ์žˆ์„๊นŒ?

ํšŒ์˜ ๊ฒฐ๊ณผ

  1. ์ฐจ๋ผ๋ฆฌ github flow๋ฅผ ์‚ฌ์šฉํ•˜์ž!
  2. github์—์„œ Pull Request๋ผ๋Š” ์ข‹์€ ๊ธฐ๋Šฅ์ด ์žˆ๋Š”๋ฐ... ์ ์šฉํ•ด๋ณผ๊นŒ?
  3. ๋ฐฐํฌ๋„ ์ผ์ฃผ์ผ์— ํ•œ๋ฒˆ ์ด์ƒ์€ ํ• ํ…๋ฐ...

๊ทธ๋ž˜์„œ github flow๋ฅผ ์ˆ˜์ •ํ•ด์„œ ์ ์šฉํ•˜๊ธฐ๋กœ ํ–ˆ์Šต๋‹ˆ๋‹ค.


our git-flow

github-flow ๊ธฐ๋ฐ˜์œผ๋กœ ์ƒํ™ฉ์— ๋งž๊ฒŒ ๊ฐœ์กฐํ•ด์„œ ์‚ฌ์šฉํ–ˆ์–ด์š”

๋งํฌ

์ •๋ฆฌํ•˜์ž๋ฉด

  1. ์ฝ”๋“œ๋ฆฌ๋ทฐ๋ฅผ ์œ„ํ•ด PR์„ ์‚ฌ์šฉํ•œ๋‹ค.
  2. ๊ฐ์ž์˜ ๊ฐœ์ธ repo์—์„œ connect_repo๋กœ PR์„ ๋‚ ๋ฆฌ๊ณ , ๋ฆฌ๋ทฐํ•˜๊ณ  mergeํ•œ๋‹ค.
    • ์ด๋ ‡๊ฒŒ ํ•˜๋ฉด ์›๊ฒฉ ์›๋ณธ ์ €์žฅ์†Œ connect_repo์—๋Š” feature branch๊ฐ€ ๋‚จ์ง€ ์•Š๋Š”๋‹ค.
  3. ๊ฐ์ž connect_repo์˜ develop์„ ์ฃผ๊ธฐ์ ์œผ๋กœ pull ํ•ด์˜จ๋‹ค.

์ด๋ ‡๊ฒŒ ํ•˜๋ฉด PR ์ž”๋””๋„ ์ฐํžˆ๊ณ  ์ข‹๋„ค!