๐Ÿ“š TIL 36์ผ์ฐจ

temprmnยท2023๋…„ 7์›” 13์ผ
0
post-thumbnail

Pull request

๋‚ด ๋ชจ๋“  ๊ฒƒ์€ ์—ฌ๊ธฐ์— ๋‘๊ณ  ์™”๋‹ค...

[Like_jungeun][Complete] clickedLikeOnPost: ๊ฒŒ์‹œ๊ธ€์— ์ข‹์•„์š” ๋‚จ๊ธฐ๊ธฐ #1
[Like_jungeun][Complete] clickedLikeOnComment: ๋Œ“๊ธ€์— ์ข‹์•„์š” ๋‚จ๊ธฐ๊ธฐ #2
[exception_jungeun][Complete] Api ๋ฐ Exception ๋ฉ”์„ธ์ง€ Body์— ์ถœ๋ ฅ #3

์ง€๋‚œ ํŒ€ ํ”„๋กœ์ ํŠธ์—์„œ ํ’€๋ฆฌํ€˜์ŠคํŠธ๋ฅผ ์ฒ˜์Œ ๋ณธ๊ฒฉ์ ์œผ๋กœ ์จ๋ดค๋Š”๋ฐ, (๊ณต๋ถ€ํ•  ๋•Œ ํ•œ์ •์œผ๋กœ) ๋กœ๊ทธ๋ฅผ ๋‚จ๊ธฐ๋Š”๊ฒŒ readme๋‚˜ ๋ธ”๋กœ๊ทธ๋ณด๋‹ค ํ›จ์”ฌ ๋” ๋ˆˆ์— ์ž˜ ๋“ค์–ด์˜ค๋Š” ๊ฒƒ ๊ฐ™์•„์„œ ํ™œ์šฉํ•ด๋ณด์•˜๋‹ค. ๊ฒธ์‚ฌ๊ฒธ์‚ฌ ํŒ€์›๋ถ„๋“ค๊ณผ ์ฝ”๋“œ๋ฆฌ๋ทฐ๋„ ํ•  ์ผ๋„ ์žˆ์–ด์„œ ์ •๋ฆฌํ–ˆ๋Š”๋ฐ ์ข‹๋‹ค๋Š” ์ด์•ผ๊ธฐ๋ฅผ ๋“ค์–ด์„œ ๊ดœํžˆ ๋ฟŒ๋“ฏ... (^_^)>

์ข…๋ฅ˜

์ฐธ๊ณ : [Git] Merge ์ดํ•ดํ•˜๊ธฐ (Merge / Squash and Merge / Rebase and Merge)

PR์„ Mergeํ•  ๋•Œ, ์—ฌ๋Ÿฌ ์ปค๋ฐ‹ ๋ชฉ๋ก๋“ค์„ ํ•˜๋‚˜๋กœ ๋ฌถ์–ด๋ฒ„๋ฆฌ๊ณ  ์‹ถ์—ˆ๋Š”๋ฐ ๋˜์ง€ ์•Š์•„์„œ ์ด๊ฒƒ์ €๊ฒƒ ๋งŒ์ ธ๋ดค๋”๋‹ˆ ํ•˜์—ฌํŠผ PR Merge์—๋„ ์—ฌ๋Ÿฌ ์ข…๋ฅ˜๊ฐ€ ์žˆ์—ˆ๋‹ค. ๊ฐ€์žฅ ๊ธฐ๋ณธ์ ์ธ๊ฒŒ Merge pull request์ด๊ณ , ๊ทธ ์™ธ๋กœ Squash and Merge์™€ Rebase and Merge๊ฐ€ ์žˆ๋‹ค.

์ด๋ฏธ์ง€ ์ถœ์ฒ˜: [Git] pull request์˜ ์ข…๋ฅ˜

squash and merge๋Š” commit a+b+c๋ฅผ ํ•ฉ์ณ ์ƒˆ๋กœ์šด commit abc์„ ๋งŒ๋“ค๊ณ  main ๋ธŒ๋žœ์น˜์— ์ถ”๊ฐ€ํ•˜๋Š” ๊ฒƒ์œผ๋กœ, ๋‚ด๊ฐ€ ์›ํ•˜๋˜ merge๋Š” ์ด๊ฒƒ์ด์—ˆ๋‹ค. readme๋ฅผ ์ž‘์„ฑํ•  ๋•Œ๋Š” ์ˆ˜์ •์ด ์žฆ์•„์„œ ์ปค๋ฐ‹ ํžˆ์Šคํ† ๋ฆฌ๊ฐ€ ๋”๋Ÿฌ์›Œ์ง€๋Š” ๊ฒฝ์šฐ๊ฐ€ ๋งŽ์•„์„œ ๋„์›€์ด ๋  ๊ฒƒ์ด๋ผ๊ณ  ์ƒ๊ฐํ–ˆ๋‹ค.

rebase and merge๋Š” commit a,b,c๊ฐ€ ํ•ฉ์ณ์ง€์ง€ ์•Š๊ณ , ๊ฐ๊ฐ์ด main ๋ธŒ๋žœ์น˜์— ์ถ”๊ฐ€๋˜๋Š” ๊ฒƒ์„ ๋งํ•œ๋‹ค. ์ผ๋ฐ˜์ ์ธ merge๋Š” merge๋ฅผ ์ปค๋ฐ‹ํ•œ ํžˆ์Šคํ† ๋ฆฌ๊ฐ€ ๋”ฐ๋กœ ๋‚จ์ง€๋งŒ, rebase and merge๋Š” ํžˆ์Šคํ† ๋ฆฌ๊ฐ€ ๋‚จ์ง€ ์•Š์•„์„œ ํ•˜๋‚˜์˜ ๋ธŒ๋žœ์น˜์— ์ž‘์—…ํ•œ ๊ฒƒ์ฒ˜๋Ÿผ ๋ณด์ผ ์ˆ˜ ์žˆ๋‹ค.

profile
`ISFJ` T 49% F 51% /

0๊ฐœ์˜ ๋Œ“๊ธ€