$ npm install -g @crazyfactory/gitflow
Set <cmd>
as an alias of <name>
which you can run as gitflow <name>
Set project_name
and sprint_number
for current path
Get project_name
and sprint_number
for current path
Fill in your Github username and password to let Gitflow create personal access token
Delete personal access token locally
- Create new local sprint branch
- Branch out from
origin/develop
- Naming convention:
{project_name}/sprint-{sprint_number}
- Push to origin
- Switch to
origin/{project_name}/sprint-{sprint_number}
- Create pull and fill content
Closes #{issue_number}
toorigin/develop
- Switch local to
origin/develop
- Create new local feature branch
- If project is maintenance, branch out from
develop
, otherwise branch out fromorigin/{project_name}/sprint-{number}
- Naming convention:
{project_name}-sprint-{number}/{issue_number}-{feature_name}
- Push to origin
- Push local branch to origin
- If project name is maintenance create pull to
develop
, otherwise create pull toorigin/{project_name}/sprint-{sprint_number}
. Then fill contentCloses #{issue_number}
. - Switch local to
origin/{project_name}/sprint-{sprint_number}
- Create a new local hotfix branch
- Branch out from
origin/master
- Naming convention:
{issue_number}-{hotfix_name}
- Push to origin
- Push local branch to origin
- Create pull and fill content
Closes #{issue_number}
toorigin/master
- Switch local branch to
origin/master
- Create an empty commit and push it