๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

git branch ์ƒ์„ฑ1

git branch ๋”ฐ์„œ ๊ฐœ๋ฐœํ•˜๊ธฐ / ์ถฉ๋Œ ๋Œ€์ฒ˜ํ•˜๊ธฐ git ์‚ฌ์šฉํ•˜๊ธฐ ๊ฐœ๋ฐœ ์‹œ ํ˜•์ƒ๊ด€๋ฆฌ๋กœ git์„ ์‚ฌ์šฉํ•œ๋‹ค๋ฉด ๊ธฐ๋Šฅ ๋ณ„๋กœ branch๋ฅผ ๋”ฐ์„œ ๊ฐœ๋ฐœ ํ›„ ์›๋ณธ ์†Œ์Šค์— mergeํ•˜๋Š” ๋ฐฉ์‹์œผ๋กœ ์‚ฌ์šฉํ•œ๋‹ค. vscode์— git scm์„ ์„ค์น˜ํ•˜์—ฌ ๋ช…๋ น์–ด ๊ธฐ๋ฐ˜์œผ๋กœ git branch ๊ด€๋ จ ๋ช…๋ น์–ด๋ฅผ ๋‹ค๋ฃจ์–ด๋ดค๋‹ค. git branch ๋”ฐ์„œ ๊ฐœ๋ฐœํ•˜๊ณ  ์ถฉ๋Œ ๋Œ€์ฒ˜ํ•˜๊ธฐ ๐Ÿ“Œbranch ์ƒ์„ฑ git branch [๋งŒ๋“ค๋ธŒ๋žœ์น˜๋ช…] [๋ถ„๊ธฐํ• ๋ธŒ๋žœ์น˜๋ช…] ๐Ÿ“Œ๋‹ค๋ฅธ branch ์†Œ์Šค pull ๋ฐ›๊ธฐ git pull origin [๋‹ค๋ฅธ๋ธŒ๋žœ์น˜๋ช…] 1. ์—ฌ๊ธฐ์„œ ์ถฉ๋Œ ๋ฐœ์ƒ ์‹œ ํ˜„์žฌ branch ์ˆ˜์ •ํ•œ ํŒŒ์ผ์„ ๋จผ์ € commit & push ํ•œ๋‹ค.(ํ˜„์žฌ branch์— ์˜ฌ๋ฆฐ๋‹ค.) 2. ๋‹ค์‹œ ์œ„ ๋ช…๋ น์–ด๋กœ ๋‹ค๋ฅธ branch๋ฅผ pull ๋ฐ›์œผ๋ฉด Automatic Merge Failed ๋˜๋ฉฐ ์ถฉ๋Œ๋‚œ ํŒŒ์ผ๊ณผ ํŒŒ์ผ ๋‚ด ์ถฉ๋Œ ์œ„.. 2022. 5. 20.