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

Study_note(zb_data)/Git

์Šคํ„ฐ๋”” ๋…ธํŠธ (Git merge)

๐Ÿ“Œ Git merge ์‚ฌ์ „ ์„ค์ •

- git configuration file open

git config --global -e

- git merge ์„ค์ • ์˜ต์…˜ ์ถ”๊ฐ€

[merge]
	tool = vscode
[mergetool]
	cmd = "code --wait $MERGED"

๐Ÿ“Œ Git merge

- ํ˜„์žฌ ์œ„์น˜ํ•œ Branch์— ๋‹ค๋ฅธ Branch๋ฅผ ๋ณ‘ํ•ฉ

git merge branch_name2

๐Ÿ“Œ Git merge conflict

์ถœ์ฒ˜ : ์ œ๋กœ๋ฒ ์ด์Šค ๋ฐ์ดํ„ฐ ์Šค์ฟจ

๐Ÿงท merge ์ค‘ conflict (์ถฉ๋Œ์„ ๋งŒ๋‚ฌ์„ ๋•Œ)

- git mergetool ์„ ์‹คํ–‰์‹œ์ผœ ๋ฐ์ดํ„ฐ๋ฅผ ์ •๋ฆฌํ•œ ํ›„, commit ์ง„ํ–‰

git mergetool