
rebase์ conflict ํด๊ฒฐํ๊ธฐ
ยท
๐ฑGit
ํด๊ฒฐ๊ณผ์ 1. ๋จผ์ ํฉ์น๊ธฐ ์ํ๋ ๋ธ๋์น๋ฅผ rebaseํ๋ค. 2. conflict ๋ฌ๋์ง ํ์ธํด๋ณด๊ณ conflict๊ฐ ์๋ค๋ฉด vscode๋ฅผ ํตํด conflict๋ฅผ ํด๊ฒฐํด์ฃผ๊ณ ์ ์ฅํ๋ค. 3. ์์ ํ ๋ช
๋ น์ด๋ฅผ ํตํด rebase๊ณผ์ ์ ๋๋ง์น๋ค.4. git push origin head --force-with-lease ๋ช
๋ น์ด๋ฅผ ํตํด ๊ฐ์ ๋ก push๋ฅผ ์งํํ๋ค.(--force-with-lease๋ฅผ ์ฌ์ฉํ๋ฉด '์๋ก์ด commit์ด ์กด์ฌํ๋ ๊ฒฝ์ฐ์ ๊ฐ์ ๋ก pushํ๋ ๊ฒ'์ ๋ง์์ค๋ค.) ์ถ์ฒhttps://baeji77.github.io/dev/git/etc/git-rebase-and-confilct-resolve/ Git rebase์ ์นํด์ง๊ธฐ (git conflict๋ฅผ ํด๊ฒฐํ๋ ๋ฐฉ..