BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeDesigning and Implementing Microsoft DevOps Solutions (AZ-400)Designing a branch strategy
Lesson220 words

Designing a branch strategy

Design a branch strategy

StrategyShapeSuits
Trunk-basedEveryone commits to main, very short branchesContinuous delivery, strong test coverage, feature flags
Feature branchOne branch per unit of work, merged by PRMost teams; the default
Release branchA branch per released version, patched independentlyMultiple supported versions in the field

The real decision

Branching strategy is chosen by how many versions you must support in production, not by team preference.

  • One version live → trunk-based or feature branches. Nothing needs to be patched separately.
  • Several versions live → release branches, because you must fix v2.3 without shipping v2.4's changes.

Everything else — branch naming, PR size, review policy — is secondary to that question.

Long-lived branches are the cost

Every long-lived branch diverges, and merge pain grows with time and distance. That is the argument for short-lived branches and, where work spans cycles, for feature flags instead of a branch: the code merges continuously and stays dormant.

Where policy fits

A strategy is a diagram until it is enforced. Branch policies (Azure Repos) and branch protection rules (GitHub) are what make main genuinely protected rather than protected by convention.

Primary sources

  • https://learn.microsoft.com/en-us/azure/devops/repos/git/git-branching-guidance
  • https://learn.microsoft.com/en-us/azure/devops/repos/git/branch-policies
All Designing and Implementing Microsoft DevOps Solutions (AZ-400) Study Resources

Related Notes

  • Agent and runner infrastructure421 words
  • Agent and runner infrastructure — quick notes150 words
  • Alerting on pipeline events255 words
  • Alerting on pipeline events — quick notes94 words
  • Analyzing usage and application performance241 words
  • Analyzing usage and application performance — quick notes73 words
  • Appropriate access levels217 words
  • Appropriate access levels — quick notes85 words
  • Automating container scanning277 words
  • Automating container scanning — quick notes96 words
  • Automating documentation from Git history191 words
  • Automating documentation from Git history — quick notes55 words

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up.

Start Studying

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free
Designing and Implementing Microsoft DevOps Solutions (AZ-400) ResourcesExplore All HivesBlogHome

© 2026 BrainyBee. Free AI-powered exam prep.