Which branch should be used for bringing forth production releases? - master Branch name for production releases: [master] Branch name for"next release" development: [develop]
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? [] Hooks and filters directory? [C:/Users/ChoiYonghun/Documents/dev/branch-practice/.git/hooks]
Summary of actions: - The feature branch 'feature/test' was merged into 'develop' - Feature branch 'feature/test' has been locally deleted - You are now on branch 'develop'
~/Documents/dev/branch-practice (develop) $ git flow release start v0.0.1 Switched to a new branch 'release/v0.0.1'
Summary of actions: - A new branch 'release/v0.0.1' was created, based on 'develop' - You are now on branch 'release/v0.0.1'
Follow-up actions: - Bump the version number now! - Start committing last-minute fixes in preparing your release - When done, run:
~/Documents/dev/branch-practice (release/v0.0.1) $ git flow release finish v0.0.1 Switched to branch 'master' Merge made by the 'recursive' strategy. index.html | 65 ++++++++++++++++++++++++++++------------------------ static/css/style.css | 3 +++ 2 files changed, 38 insertions(+), 30 deletions(-) create mode 100644 static/css/style.css Already on 'master' Switched to branch 'develop' Already up to date! Merge made by the 'recursive' strategy. Deleted branch release/v0.0.1 (was ab55d8e).
Summary of actions: - Release branch 'release/v0.0.1' has been merged into 'master' - The release was tagged 'v0.0.1' - Release tag 'v0.0.1' has been back-merged into 'develop' - Release branch 'release/v0.0.1' has been locally deleted - You are now on branch 'develop'
위와 같이 feature start를 통해 단발적인 branch를 만들어 새로운 기능을 개발한다.
$ git flow feature finish {branch 이름}을 통해 종료하면 develop과 자동으로 merge 후 삭제된다.
branch를 release startrelease finish한다.
release finish를 할 때 노트가 총 세 개 열린다. 열심히 자세히 양식에 최대한 맞춰서 적어본다!