MobilliumGitGuidelines
MobilliumGitGuidelines copied to clipboard
Guideline of Mobillium Git Usage
trafficstars
Mobillium Git Guidelines
Table of Contents
- Master & Develop Branches
- Feature & Epic Branches
- Release & Bugfix Branches
- Hotfix Branches
- Summary
- References
Master & Develop Branches
We have two main branches. These are master and develop.
- The
masterbranch store the latest released codebase. - The
developbranch store the latest codebase.
Feature & Epic Branches
Small Tasks
- Each new
smallfeatureshould be created fromdevelop. - Branch name should be start with
feature/, if you haveISSUECODEbranch name should be end continueISSUECODEand short task name(e.g.feature/MBL-1234-short-task-name) else branch name should be end with task name(e.g.feature/short-task-name). - After the tests are completed and approved, they should be merged back to related
developbranch.
Large Tasks
-
Each new
largefeatureshould be created fromdevelop. -
Branch name should be start with
epic/and end with task name. -
After the tests are completed and approved, they should be merged back to related
developbranch. -
Sub-tasks of Large Tasks are should be created from
epic. -
Branch name should be start with
feature/, if you haveISSUECODEbranch name should be continue withISSUECODEand short task name(e.g.feature/MBL-1234-short-task-name) else branch name should be end with task name(e.g.feature/short-task-name). -
After the tests are completed and approved, they should be merged back to related
epicbranch.
Release & Bugfix Branches
- Only
bugfixcan be made on thereleasebranch.- No new feature can be added to after branch created.
- If a new feature needs to be added, new release branch with increased version must be created.
Release Branches
- Each new
releaseshould be created fromdevelop. - Branch name should be start with
release/and end with version number(e.g.release/1.0.1). - After the new version is released, they should be merged to
masteranddevelopbranches, andmastershould be tagged with an updated version numbers.
Bugfix Branches
- Each new
bugfixshould be created fromrelease. - Branch name should be start with
bugfix/and end with task name. - After the tests are completed and approved, they should be merged back to related
releasebranch.
Hotfix Branches
- The
hotfixbranches are used for quick bugfix on production releases. - Each new
hotfixshould be created frommaster. - Branch name should be start with
hotfix/and end with version number(e.g.hotfix/1.1.11). - After the fix is complete, they should be merged to
masteranddevelopbranches, andmastershould be tagged with an updated version numbers.
Summary
The overall flow of Gitflow-M is:
- A
developbranch is created frommaster Epicbranches are created fromdevelopfor large tasks- for sub-tasks of large tasks
Featurebranches are created fromepic - When a
epicis complete it is merged into thedevelopbranch - for small tasks
Featurebranches are created fromdevelop - When a
featureis complete it is merged into thedevelopbranch - A
releasebranch is created fromdevelop Bugfixbranches are created fromrelease- When the
releasebranch is done it is merged intodevelopandmaster - If an issue in
masteris detected ahotfixbranch is created frommaster - Once the
hotfixis complete it is merged to bothdevelopandmaster