현재 branch 목록 확인
git branch -a
다른 branch 로 이동하기
git switch <브랜치명>
❗️ local repository 의 brach 삭제하기!
git brach -d <브랜치명>
충돌이 해결되지 않은 상태여서 에러메세지가 뜨거나, 강제로 branch를 삭제하고 싶을 때는
git branch -D <브랜치명>
❗️ remote repository 의 branch 삭제하기!
git push origin --delete <브랜치명>
삭제가 잘 되었는지 확인
git branch -a
'Git' 카테고리의 다른 글
[Git] - git branch 작업중 업데이트 (0) | 2023.07.26 |
---|---|
[Git] - Git Branch 생성 후 push 하기! (0) | 2023.05.19 |