Git flowの導入

Git flowの導入

# git flowパッケージの導入
% brew install git-flow

# リモートの更新
% git remote update

# developブランチの作成
% git branch develop

# git flowの導入
% git flow init
Which branch should be used for bringing forth production releases?
   - develop
   - feature-ph1-add-breadcrumb
   - feature-ph1-test
   - master
Branch name for production releases: [master]

Which branch should be used for integration of the "next release"?
   - develop
   - feature-ph1-add-breadcrumb
   - feature-ph1-test
Branch name for "next release" development: [develop]
How to name your supporting branch prefixes?
Feature branches? [feature/]
Release branches? [release/]
Hotfix branches? [hotfix/]
Support branches? [support/]
Version tag prefix? []

# 作成を確認
% git config --list
gitflow.branch.master=master
gitflow.branch.develop=develop
gitflow.prefix.feature=feature/
gitflow.prefix.release=release/
gitflow.prefix.hotfix=hotfix/
gitflow.prefix.support=support/
gitflow.prefix.versiontag=

# 既存リポジトリをfeatureへ移動
% git branch -m feature-ph1-test feature/feature-ph1-test
% git checkout feature/feature-ph1-test
% git push origin feature/feature-ph1-test

前提知識

  • origin: レポジトリURLの別名