Branch Strategy - BOD-Tech-Trend-Emporium/Backend GitHub Wiki
Branch Strategy
Overview
For the Tech-Trend-Emporium backend, we are following the Git-flow branching strategy to manage our repository. This ensures a smooth workflow and keeps the codebase stable.
Main Branches:
-
Main: The
mainbranch contains production-ready code. No direct commits are allowed. All changes must go through Pull Requests (PRs) and require at least two approvals. -
Develop: The
developbranch is where features are integrated before they are merged intorelease. All features should be merged intodevelopvia PRs once they are ready. -
Release The
releasebranch is where we adjust the code to be merged intomain, our production branch.
Supporting Branches:
-
Feature: Each new feature or task will have its own branch derived from
develop. The naming convention for feature branches isfeature/feature-name. -
Hotfix: These branches are used for emergency fixes to the production code, branched off from
mainand then merged back into bothmainanddeveloponce the fix is complete.
Branch Naming Conventions:
- Feature branches:
feature/your-feature-name - Hotfix branches:
hotfix/your-hotfix-name