# good
$ git checkout -b oauth-migration
# bad
$ git checkout -b login_fix
# good
$ git checkout -b issue-15-oauth-migration
# bad 무엇인지 알수 없음
$ git checkout -b issue-123
이음표(-)
사용slash(/)
를 사용하여 file system이나 URL 구조와 유사한 형태로 구성할 수 있음종류 | 형식 | 예시 |
---|---|---|
Parent branch | <parent-branch-name> /base | git checkout -b feature-a/base |
Child branch | <parent-branch-name>/<child-branch-name> | git checkout -b feature-a/sub-feature-x feature-a/base git checkout -b feature-a/sub-feature-y feature-a/base git checkout -b feature-a/sub-feature-z feature-a/base |
# master branch에 합쳐진 브랜치를 확인하기 위한 명령어
$ git branch --merged | grep -v "\*"
참조 url