-
[Git] Rebase2023. 8. 3. 01:49๋ฐ์ํ
โ๏ธ Rebase
- branch๋ผ๋ฆฌ์ ์์ ์ ํฉ์น๋ ๋ฐฉ๋ฒ
- rebase๋ฅผ ์ฌ์ฉํ๋ฉด ์ปค๋ฐ ๋ก๊ทธ์ ์ด๋ ฅ ์ ๋ฆฌ ์ฉ์ด
c1์์ ํ์๋ main, bugfix ๋ธ๋์น๊ฐ ๊ฐ๊ฐ c2, c3 ์์ ์ ๊ธฐ๋กํ์์ง๋ง, bugfix ๋ธ๋์น์์ rebaseํ์ฌ main ๋ธ๋์น์ c2 ์์ ์ ํฉ์น ๋ชจ์ต git rebase main
main ๋ธ๋์น์์๋ ๋ง์ฐฌ๊ฐ์ง๋ก rebase๋ฅผ ์ด์ฉํด bugfix ๋ด์ญ์ ํฌํจํ ์ ์๋ค. git checkout main git rebase bugfix
๋ฐ์ํ'โ๏ธ Git > ๐ ๋ช ๋ น์ด' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Git] Relative References (0) 2023.08.05 [Git] HEAD (0) 2023.08.04 [Git] Merge (0) 2023.08.02 [Git] Branch (0) 2023.08.01 [Git] Commit (0) 2023.07.31