Skip to content

Branching Strategy

señoritami edited this page Mar 8, 2026 · 1 revision

Branches allow work to happen independently from the main codebase.

In practice they are used for:

  • new features
  • bug fixes
  • experiments
  • urgent production fixes

A simple and reliable workflow is the feature branch model.


Typical Flow

  1. update the main branch
  2. create a feature branch
  3. commit changes
  4. push the branch
  5. open a pull request
  6. merge after review

Example:

git switch main
git pull origin main
git switch -c feature/add-audit-logging

Clone this wiki locally