HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
📝
남득윤 학습 저장소
/
🆚
VS 모음
/
🆚
머지 vs 리베이스
🆚

머지 vs 리베이스

notion image
hotfix의 변경분을 main 브랜치에 합치고 싶다.
 
git merge hotfix
notion image
새로운 커밋이 생성된다.
 
 
git checkout hotfix git rebase main
notion image
공통조상을 찾음
hotfix 브랜치의 커밋을 하나하나 앞으로 민다.
 
 
git switch main git merge hotfix (FAST FOWARD 임)
notion image
 
리베이스를 사용하면 커밋 히스토리를 선형적으로 관리할 수 있다.