Skip to content

Latest commit

ย 

History

History
75 lines (43 loc) ยท 3.23 KB

CONTRIBUTING.md

File metadata and controls

75 lines (43 loc) ยท 3.23 KB

๊ธฐ์—ฌ ๋ฐฉ๋ฒ•

๋‹ต์•ˆ ์ฝ”๋“œ ์ž‘์„ฑ๋ฒ•

์ฐธ์กฐ ๋งํฌ : ๊นƒํ—ˆ๋ธŒ(GitHub)์—์„œ์˜ ์˜คํ”ˆ ์†Œ์Šค ํ”„๋กœ์ ํŠธ ๊ธฐ์—ฌ๋ฅผ ์œ„ํ•œ ์ดˆ๋ณด์ž ๊ฐ€์ด๋“œ

๋จผ์ €, ํ˜„์žฌ ํŽ˜์ด์ง€ ์šฐ์ƒ๋‹จ์— ์žˆ๋Š” ๋ฒ„ํŠผ๋“ค ์ค‘ Fork ๋ฒ„ํŠผ ํด๋ฆญํ•˜์—ฌ ๊ฐœ์ธ ์›๊ฒฉ ์ €์žฅ์†Œ๋กœ ๋ณต์‚ฌํ•ด์ค๋‹ˆ๋‹ค.

๊ฐœ์ธ ๋กœ์ปฌ ์ €์žฅ์†Œ๋กœ Forkํ•œ ๊ฐœ์ธ ์›๊ฒฉ ์ €์žฅ์†Œ ์ฝ”๋“œ๋ฅผ ํด๋ก ํ•ฉ๋‹ˆ๋‹ค,

์˜ˆ๋ฅผ ๋“ค์–ด,

$ git clone https://github.com/Bumsu-Yi/leetcode-study.git

ํ‘ธ์‹œ๋ ค๋Š” ๋ฌธ์ œ์˜ ํด๋”์—์„œ ์ž๊ธฐ GitHub ์œ ์ €๋„ค์ž„์œผ๋กœ ํŒŒ์ผ์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

์˜ˆ๋ฅผ ๋“ค์–ด,

$ cd two-sum
$ touch Bumsu-Yi.py

๊ทธ ํŒŒ์ผ ์•ˆ์— ๋‹ต์•ˆ ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•˜๊ณ , ๋ณ€๊ฒฝ ์‚ฌํ•ญ์„ ์ปค๋ฐ‹ํ•ฉ๋‹ˆ๋‹ค.

์˜ˆ๋ฅผ ๋“ค์–ด,

$ git add Bumsu_Yi.py
$ git commit -am "two sum solution"

๋‹ต์•ˆ ์ฝ”๋“œ ์ œ์ถœ๋ฒ•

์ž‘์„ฑํ•œ ๋‹ตํ•œ ์ฝ”๋“œ๋ฅผ ๊ฐœ์ธ ์›๊ฒฉ ์ €์žฅ์†Œ๋กœ push ํ•ฉ๋‹ˆ๋‹ค.

$ git push origin main

๊ทธ ๋‹ค์Œ, ๊นƒํ—ˆ๋ธŒ ์›น์‚ฌ์ดํŠธ ๊ฐœ์ธ ์›๊ฒฉ์ €์žฅ์†Œ์— ๋“ค์–ด๊ฐ€ ์ขŒ์ƒ๋‹จ Pull request๋ฅผ ๋ˆ„๋ฅด๊ณ  Pull request ํƒญ์œผ๋กœ ์ด๋™ํ•œ ๋’ค, New pull request ๋ฒ„ํŠผ์„ ํด๋ฆญํ•ด์ค๋‹ˆ๋‹ค.

์ด์ œ ์ž‘์—…ํ•œ ์ฝ”๋“œ๋ฅผ ์›๋ณธ ์›๊ฒฉ ์ €์žฅ์†Œ๋กœ 'Merge' ํ•˜๊ธฐ ์œ„ํ•œ 'PR'์„ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Create pull request ๋ฅผ ๋ˆ„๋ฅด๊ธฐ์— ์•ž์„œ, ์ƒ๋‹จ์— ์žˆ๋Š” base repository ์™€ head repositry ๊ฐ€ ๊ฐ๊ฐ ์›๋ณธ ์›๊ฒฝ ์ €์žฅ์†Œ์˜ main ๋ธŒ๋ Œ์น˜์™€ ๋ณธ์ธ์ด ์ž‘์—…ํ•œ ๋ธŒ๋ Œ์น˜๊ฐ€ ๋งž๋Š” ์ง€ ํ™•์ธํ•ด์ค๋‹ˆ๋‹ค.

ํ™•์ธ์ด ๋˜์—ˆ์œผ๋ฉด, Create pull request๋ฅผ ๋ˆ„๋ฅด๊ณ , Title์— ๋ณธ์ธ์˜ ๋””์Šค์ฝ”๋“œ ๋‹‰๋„ค์ž„์„ ํฌํ•จ ์‹œ์ผœ์ฃผ๊ณ  Create pull request ๋ฒ„ํŠผ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

๊ทธ๋Ÿฌ๋ฉด ๋””์Šค์ฝ”๋“œ์—๋„ ์•Œ๋ฆผ์ด ์˜ฌ๊ฒ๋‹ˆ๋‹ค. Pull Request๋ฅผ ์ƒ์„ฑํ•œ ๋’ค, ์šฐ์ธก Projectํƒญ์—์„œ Iteration์„ค์ •์„ ํ˜„์žฌ ์ง„ํ–‰ ์ฃผ์ฐจ์— ๋งž์ถฐ์ฃผ์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.

๋˜ํ•œ Draft PR ๊ธฐ๋Šฅ์„ ํ™œ์šฉํ•ด ํ•œ ๋ฒˆ์— ๋ชจ๋“  ์†”๋ฃจ์…˜์„ ์ œ์ถœํ•˜๊ธฐ๋ณด๋‹ค ๋ณธ์ธ์˜ ์ง„ํ–‰ ์ƒํ™ฉ์„ ์ฃผ๊ธฐ์ ์œผ๋กœ ์—…๋ฐ์ดํŠธํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•ฉ๋‹ˆ๋‹ค.

Draft ๋ณ€ํ™˜์€ Pull Request ์ƒ์„ฑ ํ›„ ์šฐ์ธก ์ƒ๋‹จ Still in progress? ํ•ญ๋ชฉ์„ ํ†ตํ•ด ๋ณ€ํ™˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ด์ œ ๋ณธ์ธ์ด ์ž‘์„ฑํ•œ ์†”๋ฃจ์…˜์„ ๋ฆฌ๋ทฐ๋ฐ›์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฆฌ๋ทฐ๊ฐ€ approved ๋œ๋‹ค๋ฉด ๋ฉ”์ธ ์ €์žฅ์†Œ์— Merge ํ•˜์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Pull Request ์„ค๋ช…๋ž€์— ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๋ฉด์„œ ์–ด๋ ค์› ๋˜ ๋ถ€๋ถ„์ด๋‚˜ ๋„์›€์ด ํ•„์š”ํ•œ ๋ถ€๋ถ„์— ๋Œ€ํ•ด ๋‚จ๊ฒจ์ฃผ์‹œ๋ฉด ๋‹ค๋ฅธ ๋ถ„๋“ค์ด ๋ฆฌ๋ทฐํ•  ๋•Œ ์ฐธ๊ณ ํ•  ์ˆ˜ ์žˆ์–ด์„œ ์ข‹๊ฒ ์ฃ ?

Pull Request์— ๋Œ€ํ•œ ๋ชจ๋“  ํ”„๋กœ์„ธ์Šค๊ฐ€ ์™„๋ฃŒ๋˜์—ˆ๋‹ค๋ฉด, ๋ณธ์ธ์˜ Pull Request๋Š” Pull Request ํ•˜๋‹จ Merge pull request ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜์—ฌ

์ง์ ‘ Merge ์ง„ํ–‰ํ•˜๋„๋ก ํ•ฉ๋‹ˆ๋‹ค.

PR ๋‹ต์•ˆ ์ฝ”๋“œ ๋ฆฌ๋ทฐ๋ฒ•

๋ณธ์ธ์˜ Pull Request ์ž‘์„ฑ ์™„๋ฃŒ ํ›„, ๋ณธ์ธ ์งํ›„ Pull Request๋ฅผ ์ƒ์„ฑํ•œ ์Šคํ„ฐ๋””์›์˜ ์†”๋ฃจ์…˜์„ ๋ฆฌ๋ทฐํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ๋“ค์–ด,

์˜ˆ์‹œ

์œ„ ํ˜•์‹์œผ๋กœ ๋ฆฌ๋ทฐ๋ฅผ ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค. ๋ฆฌ๋ทฐ ๋‚ด์šฉ์€ ๋‹น์‹œ๊นŒ์ง€ ์ œ์ถœ ์™„๋ฃŒ๋œ ์ฝ”๋“œ๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ๊ฐฏ์ˆ˜ ์ œํ•œ ์—†์ด ์ž์œ ๋กญ๊ฒŒ ์ž‘์„ฑํ•ด ์ฃผ์‹œ๋˜, ์œ ์ตํ•œ ๋ฆฌ๋ทฐ๋ฅผ ์ง€ํ–ฅํ•˜๋„๋ก ํ•ฉ๋‹ˆ๋‹ค.

๋ณธ์ธ์—๊ฒŒ ํ• ๋‹น๋œ ๋ฆฌ๋ทฐ ์™ธ ๋‹ค๋ฅธ ๋ฉค๋ฒ„์— ๋Œ€ํ•œ ์ฝ”๋“œ ๋ฆฌ๋ทฐ๋„ ์–ธ์ œ๋‚˜ ํ™˜์˜ํ•ฉ๋‹ˆ๋‹ค.