git branch

Git 브랜치 작업을 위한 주요 명령어. 더 많은 정보: https://git-scm.com/docs/git-branch.

git branch {{[-a|--all]}}

git branch {{[-a|--all]}} --contains {{커밋_해시}}

git branch --show-current

git branch {{브랜치_이름}}

git branch {{브랜치_이름}} {{커밋_해시}}

git branch {{[-m|--move]}} {{이전_브랜치_이름}} {{새_브랜치_이름}}

git branch {{[-d|--delete]}} {{브랜치_이름}}

git push {{원격_이름}} {{[-d|--delete]}} {{원격_브랜치_이름}}