git branch add-item
git branch
git switch add-item
(checkout 명령어가 Git 2.23 버전부터 switch, restore로 분리되었다.)
git switch -c new-teams
git branch -d (삭제할 브랜치명)
지워질 브랜치에만 있는 내용의 커밋이 있을 경우
즉 다른 브랜치로 가져오지 않은 내용이 있는 브랜치를 지울 때는
-d 대신 -D(대문자)로 강제 삭제해야 합니다.
git branch -D (강제삭제할 브랜치명)
git branch -m (기존 브랜치명) (새 브랜치명)