[Git] 4. Branch

문정준's avatar
Apr 02, 2025
[Git] 4. Branch
Contents
정리
 
notion image
 
notion image
 

Branch 생성

git branch branchname
 

만들어진 Branch 확인

git branch
 

Branch 이동

1. branch 이동 git checkout branchname 2. branch 생성 후 이동 git checkout -b branchname
 
notion image
 
 

Fast-forward merge

git merge branchname
 
notion image
 

3-way merge

  • 코드는 동일
notion image
 

Branch 충돌

 
  • Fast-forward merge
notion image
notion image
notion image
notion image
 
 

정리

notion image
notion image
Share article

sxias