Transitioning to git-flow
.
- create a
develop
branch - in
settings
=>branches
choosedevelop
as the default branch and clickupdate
- also in
settings
=>branches
choose to protect themaster
branch.
In your terminal, in the project folder:
git fetch upstream
to from yourmaster
branch to sync your fork with the upstream.git checkout -b develop
to create your localdevelop
branchgit pull upstream develop
to pull down the changesgit push -u origin develop
to connect your local branch to your fork
Then run git flow init
and accept the defaults:
> git flow init
Which branch should be used for bringing forth production releases?
- master
- develop
Branch name for production releases: [master]
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? []