๊ด€๋ฆฌ ๋ฉ”๋‰ด

๋ชฉ๋ก๊นƒํ—ˆ๋ธŒ ๋ธŒ๋žœ์น˜ (2)

Hey Tech

[Github] ํ„ฐ๋ฏธ๋„์—์„œ ์ƒˆ๋กœ์šด branch ๋งŒ๋“ค๊ธฐ

์•ˆ๋…•ํ•˜์„ธ์š”, ์˜ค๋Š˜์€ ํ„ฐ๋ฏธ๋„์—์„œ ์ƒˆ๋กœ์šด branch๋ฅผ ๋งŒ๋“œ๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ๊ณต์œ ํ•ด ๋“œ๋ฆฝ๋‹ˆ๋‹ค. branch๋Š” ๋ฒ„์ „ ๊ด€๋ฆฌ ๋ฐ ์—ฌ๋Ÿฌ ํŒ€์›๊ณผ ํ˜‘์—…ํ•˜๋Š” ๋ฐ ๋งค์šฐ ์œ ์šฉํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋Ÿผ ๋ฐ”๋กœ ์‹œ์ž‘ํ•˜์ฃ ! ๋ชฉ์ฐจ 1. branch ์ƒ์„ฑํ•˜๊ธฐ 2. ํŠน์ • branch์— ํŒŒ์ผ ์—…๋กœ๋“œํ•˜๊ธฐ 1. branch ์ƒ์„ฑํ•˜๊ธฐ git checkout -b [์ƒˆ๋กœ์šด branch ์ด๋ฆ„] ์ €๋Š” "01.additionalFiles"๋ผ๋Š” ์ด๋ฆ„์˜ branch ๋ฅผ ์ƒˆ๋กญ๊ฒŒ ์ƒ์„ฑํ–ˆ์œผ๋ฉฐ, ์ž๋™์œผ๋กœ ํ˜„์žฌ branch๋Š” ์ƒ์„ฑํ•œ branch๋กœ ์„ค์ •๋˜๋Š” ๊ฒƒ์„ ํ™•์ธํ•˜์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. 2. ํŠน์ • branch์— ํŒŒ์ผ ์—…๋กœ๋“œํ•˜๊ธฐ git push origin [branch ์ด๋ฆ„] ์œ„์˜ ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด origin ์ด๋ผ๋Š” ์ €์žฅ์†Œ ๋‚ด ํŠน์ • branch์— ํŒŒ์ผ์„ ์—…๋กœ๋“œํ•ฉ๋‹ˆ๋‹ค. ํฌ์ŠคํŒ… ๋‚ด์šฉ์—..

SW ๊ฐœ๋ฐœ/Git 2021. 1. 18. 18:35