git flow init
기본 브랜치 설정
git flow init 명령어를 실행하면 다음과 같은 메시지가 표시
No branches exist yet. Base branches must be created now.
Branch name for production releases: [main]
여기서 main는 프로덕션 릴리스에 사용될 기본 브랜치
기본값으로 main를 사용하거나 다른 이름을 입력 가능
master을 사용하려면 master을 입력하고 Enter개발 브랜치 설정
다음으로, 개발 브랜치를 설정
Branch name for "next release" development: [develop]
위의 develop은 다음 릴리스를 위한 개발 브랜치
기본값으로 develop을 사용하거나 다른 이름을 입력 가능
브랜치 접두사 설정
이후에는 지원 브랜치의 접두사를 설정합니다. 기본값을 사용하려면 Enter
How to name your supporting branch prefixes?
Feature branches? [feature/]
Bugfix branches? [bugfix/]
Release branches? [release/]
Hotfix branches? [hotfix/]
Support branches? [support/]
Version tag prefix? []
Hook 및 필터 디렉토리 설정
마지막으로 훅 및 필터 디렉토리를 설정, 기본값을 사용하려면 Enter
Hooks and filters directory? [/path/to/your/repo/.git/hooks]
새로운 기능 개발 feature 브랜치를 생성.
git flow feature start <feature-name>