
git branch (생성할 브랜치명)
git branch
git switch (이동할 브랜치명)
checkout 명령어가 Git 2.23버전부터 switch, restore로 분리
git switch -c (생성•이동 할 브랜치명)
git branch -d (삭제할 브랜치명)
다른 브랜치로 가져오지 않은 내용이 있는 브랜치 삭제 시(강제 삭제)
git branch -D (강제 삭제한 브랜치명)
git branch -m (기존 브랜치명) (새 브랜치명)
git log --all --decorate --oneline --graph
git merge (main에 합 칠 브랜치) - merge는 reset으로 되돌리기 가능하다 git merge —abort git rebase main
git merge (합 칠 브랜치)
git add .git rebase --continue로 계속 git rebase —abort