๐Ÿ“

7. Git Pull Request

ย 
์ƒ๋Œ€๋ฐฉ์˜ ์ €์žฅ์†Œ๋ฅผ Forkํ•œ ํ›„ ์›๋ณธ ์ €์žฅ์†Œ์— ์˜ฌ๋ฆฌ๊ณ  ์‹ถ์„ ๋•Œ ์–ด๋–ป๊ฒŒ ํ•ด์•ผ ํ• ๊นŒ์š”? ์ด๋Ÿด ๋•Œ, ์›๋ณธ ์ €์žฅ์†Œ์˜ ๊ถŒํ•œ์„ ๊ฐ€์ง„ ์‚ฌ๋žŒ์—๊ฒŒ ๋‘ ๋ธŒ๋žœ์น˜๋ฅผ ํ•ฉ์น˜๋Š” ๊ฒƒ์„ ํ—ˆ๋ฝํ•ด ๋‹ฌ๋ผ๊ณ  ๋ณด๋‚ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ์ด๊ฒƒ์„ Pull Request ๋˜๋Š” PR์ด๋ผ๊ณ  ํ•ฉ๋‹ˆ๋‹ค. PR์€ ์›๋ณธ ์ €์žฅ์†Œ์— ๋ณด๋‚ผ ์ˆ˜ ์žˆ๊ณ  ํฌํฌํ•œ ์ €์žฅ์†Œ์—๋„ ๋ณด๋‚ผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
ย 
PR์˜ ์žฅ์ ์€ ํ˜‘์—…์„ ํ•˜๊ณ  ์žˆ์œผ๋ฉด ์ตœ๋Œ€ํ•œ ์ง์ ‘ mergeํ•˜๋Š” ๊ฒƒ์€ ํ”ผํ•˜๊ณ  ๋ชจ๋“  merge๋ฅผ pull request๋ฅผ ํ†ตํ•ด์„œ ํ•˜๋Š”๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค. ์ƒ๋Œ€๋ฐฉ์ด PR์„ ๋ณด๊ณ  ์ฝ”๋“œ๋ฆฌ๋ทฐ ๊ฐ€๋Šฅํ•˜๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค. PR์— ์ˆ˜์ •์ด ํ•„์š”ํ•˜๋ฉด ๋Œ“๊ธ€์„ ๋‹ฌ์•„ change request๋ฅผ ๋ณด๋‚ผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋‹จ, ์˜คํ”ˆ ์†Œ์Šค์— PR์„ ๋ณด๋‚ผ๋•Œ์—๋Š” ๊ธฐ์—ฌ ์•ˆ๋‚ด๋ฌธ์„œ ์ฐธ๊ณ ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
ย 
PR์„ ๋ณด๋‚ด๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.
ํฌํฌํ•œ ์ €์žฅ์†Œ์— Contribute๋ฅผ ํด๋ฆญํ•˜๋ฉด Open pull request ๋ฒ„ํŠผ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.
notion imagenotion image
ย 
ํด๋ฆญํ•˜๋ฉด ์›๋ณธ ์ €์žฅ์†Œ๋กœ ์ด๋™ํ•ฉ๋‹ˆ๋‹ค. ์–ด๋–ค ๋ธŒ๋žœ์น˜์— ์–ด๋””๋กœ ๋ธŒ๋žœ์น˜ ํ• ๊ฒƒ์ธ์ง€ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.
notion imagenotion image
ย 
์ดˆ๋ก์ƒ‰ ๋ฌธ๊ตฌ๊ฐ€ ๋‚˜ํƒ€๋‚˜๋ฉด ์ •์ƒ์ ์œผ๋กœ PR์„ ํ•  ์ˆ˜ ์žˆ๊ณ  ๋นจ๊ฐ„์ƒ‰ ๋ฌธ๊ตฌ๊ฐ€ ๋œฌ๋‹ค๋ฉด ์ถฉ๋Œ์„ ํ•ด๊ฒฐํ•˜๊ณ  PR์„ ํ•ฉ๋‹ˆ๋‹ค.
notion imagenotion image
ย 
Create pull request๋ฅผ ํด๋ฆญํ•˜๋ฉด ์ œ๋ชฉ๊ณผ ๊ธ€์„ ์ž‘์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
notion imagenotion image
notion imagenotion image
ย 
์ž‘์„ฑ์ด ์™„๋ฃŒ๋˜๋ฉด Create pull request ๋ฒ„ํŠผ์ด ํ™œ์„ฑํ™” ๋ฉ๋‹ˆ๋‹ค.
ย 
์ƒ๋‹จ Pull requests๋ฅผ ํด๋ฆญํ•˜๋ฉด ์ƒ๋Œ€๋ฐฉ์ด PR์„ ๋ณด๋‚ธ ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
notion imagenotion image
ย 
์ด PR์€ ๋‚ด๊ฐ€ mergeํ•  ์ˆ˜ ์—†๊ณ  ๊ถŒํ•œ์ด ์žˆ๋Š” ์‚ฌ๋žŒ์ด ๋ฆฌ๋ทฐ๋ฅผ ๋‹ฌ๊ฑฐ๋‚˜, Merge pull request ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜์—ฌ mergeํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
notion imagenotion image
ย