...
main: The primary branch representing the latest pre-production-ready code. All merges into
main
trigger pre-production deployments.develop: Serves as the integration branch for completed features. Code in
develop
should be stable but may not be fully production-ready.feature/*: Short-lived branches created off
develop
for developing individual features or fixes. Names follow a convention likefeature/new-widget
.- fix/*: Short-lived branches created off
develop
for fixing bug or issues.
Workflow
Start a Feature:
Create a new branch from the latest
develop
latest main or whatever is your starting point:Code Block language bash git checkout develop git pull origin develop # Make sure you have the latest git checkout -b feature/my-awesome-change
Develop the Feature:
- Make code changes and commit regularly to your feature branch.
- Push your branch to the remote repository to share and back up code.
Create a Pull Request:
- Once your feature is complete and tested locally:
- Push your feature branch to the remote repository.
- Create a PR targeting the
main
branch. - Describe your changes and the rationale behind them.
- Once your feature is complete and tested locally:
Code Review & Testing:
- Collaborators review and suggest improvements.
- Address feedback by making additional commits to your feature branch.
- automated tests run creating temporary testing environment based on your feature branch for more thorough review.
Merge into main:
- Once the PR is approved, merge the feature branch into
main
. - After the PR from
branch
tomain
is approved and merged, a deployment pipeline is automatically triggered to deploy the updated code to EED pre-production environment.
- Once the PR is approved, merge the feature branch into
...