가지치기

Dec 18, 2023
가지치기
💡
기능 하나 당 하나의 branch 만들면 관리하기 편함
notion image
 
💡
git status : 상태 확인
notion image
작업 중이면 커밋하고 넘어가서 깨끗한 상태에서 해야 함
💡
git checkout -b test : 체크아웃 하면서 가지 생성
💡
git branch test : test 가지 생성
💡
git branch : 내역 확인
 
💡
git checkout test : test 가지로 이동
이동할 때 커밋하고 이동해야 함!
notion image
 
💡
git merge test : 병합하기(master에서 뜸)
master 환경에서 해야 함
이후 add > commit > push
notion image
 
Share article
RSSPowered by inblog