Core Principles

Branching Model

  1. main: The primary branch representing the latest pre-production-ready code. All merges into main trigger pre-production deployments.

  2. develop: Serves as the integration branch for completed features. Code in develop should be stable but may not be fully production-ready.

  3. feature/*: Short-lived branches created off develop for developing individual features or fixes. Names follow a convention like feature/new-widget.

  4. fix/*: Short-lived branches created off develop for fixing bug or issues.

Workflow

  1. Start a Feature:

  2. Develop the Feature:

  3. Create a Pull Request:

  4. Code Review & Testing:

  5. Merge into main:

Additional Considerations

Tooling

Advantages


Related issues