DevOps help for Cloud Platform Engineers
  • Welcome!
  • Quick Start Guide
  • About Me
  • CV
  • 🧠DevOps & SRE Foundations
    • DevOps Overview
      • Engineering Fundamentals
      • Implementing DevOps Strategy
      • DevOps Readiness Assessment
      • Lifecycle Management
      • The 12 Factor App
      • Design for Self Healing
      • Incident Management Best Practices (2025)
    • SRE Fundamentals
      • Toil Reduction
      • System Simplicity
      • Real-world Scenarios
        • AWS VM Log Monitoring API
    • Agile Development
      • Team Agreements
        • Definition of Done
        • Definition of Ready
        • Team Manifesto
        • Working Agreement
    • Industry Scenarios
      • Finance and Banking
      • Public Sector (UK/EU)
      • Energy Sector Edge Computing
  • DevOps Practices
    • Platform Engineering
    • FinOps
    • Observability
      • Modern Practices
  • 🚀Modern DevOps Practices
    • Infrastructure Testing
    • Modern Development
    • Database DevOps
  • 🛠️Infrastructure as Code (IaC)
    • Terraform
      • Getting Started - Installation and initial setup [BEGINNER]
      • Cloud Integrations - Provider-specific implementations
        • Azure Scenarios
        • AWS Scenarios
        • GCP Scenarios
      • Testing and Validation - Ensuring infrastructure quality
        • Unit Testing
        • Integration Testing
        • End-to-End Testing
        • Terratest Guide
      • Best Practices - Production-ready implementation strategies
        • State Management
        • Security
        • Code Organization
        • Performance
      • Tools & Utilities - Enhancing the Terraform workflow
        • Terraform Docs
        • TFLint
        • Checkov
        • Terrascan
      • CI/CD Integration - Automating infrastructure deployment
        • GitHub Actions - GitHub-based automation workflows
        • Azure Pipelines - Azure DevOps integration
        • GitLab CI - GitLab-based deployment pipelines
    • Bicep
      • Getting Started - First steps with Bicep [BEGINNER]
      • Template Specs
      • Best Practices - Guidelines for effective Bicep implementations
      • Modules - Building reusable components [INTERMEDIATE]
      • Examples - Sample implementations for common scenarios
      • Advanced Features
      • CI/CD Integration - Automating Bicep deployments
        • GitHub Actions
        • Azure Pipelines
  • 💰Cost Management & FinOps
    • Cloud Cost Optimization
  • 🐳Containers & Orchestration
    • Containerization Overview
    • Docker
      • Dockerfile Best Practices
      • Docker Compose
    • Kubernetes
      • CLI Tools - Essential command-line utilities
        • Kubectl
        • Kubens
        • Kubectx
      • Core Concepts
      • Components
      • Best Practices
        • Pod Security
        • Security Monitoring
        • Resource Limits
      • Advanced Features - Beyond the basics [ADVANCED]
        • Service Mesh
        • Ingress Controllers
          • NGINX
          • Traefik
          • Kong
          • Gloo Edge
      • Troubleshooting - Diagnosing and resolving common issues
        • Pod Troubleshooting Commands
      • Enterprise Architecture
      • Health Management
      • Security & Compliance
      • Virtual Clusters
    • OpenShift
  • Service Mesh & Networking
    • Service Mesh Implementation
  • Architecture Patterns
    • Data Mesh
    • Multi-Cloud Networking
    • Disaster Recovery
    • Chaos Engineering
  • Edge Computing
    • Implementation Guide
    • Serverless Edge
    • IoT Edge Patterns
    • Real-Time Processing
    • Edge AI/ML
    • Security Hardening
    • Observability Patterns
    • Network Optimization
    • Storage Patterns
  • 🔄CI/CD & GitOps
    • CI/CD Overview
    • Continuous Integration
    • Continuous Delivery
      • Deployment Strategies
      • Secrets Management
      • Blue-Green Deployments
      • Deployment Metrics
      • Progressive Delivery
      • Release Management for DevOps/SRE (2025)
    • CI/CD Platforms - Tool selection and implementation
      • Azure DevOps
        • Pipelines
          • Stages
          • Jobs
          • Steps
          • Templates - Reusable pipeline components
          • Extends
          • Service Connections - External service authentication
          • Best Practices for 2025
          • Agents and Runners
          • Third-Party Integrations
          • Azure DevOps CLI
        • Boards & Work Items
      • GitHub Actions
      • GitLab
        • GitLab Runner
        • Real-life scenarios
        • Installation guides
        • Pros and Cons
        • Comparison with alternatives
    • GitOps
      • Modern GitOps Practices
      • GitOps Patterns for Multi-Cloud (2025)
      • Flux
        • Overview
        • Progressive Delivery
        • Use GitOps with Flux, GitHub and AKS
  • Source Control
    • Source Control Overview
    • Git Branching Strategies
    • Component Versioning
    • Kubernetes Manifest Versioning
    • GitLab
    • Creating a Fork
    • Naming Branches
    • Pull Requests
    • Integrating LLMs into Source Control Workflows
  • ☁️Cloud Platforms
    • Cloud Strategy
    • Azure
      • Best Practices
      • Landing Zones
      • Services
      • Monitoring
      • Administration Tools - Platform management interfaces
        • Azure PowerShell
        • Azure CLI
      • Tips & Tricks
    • AWS
      • Authentication
      • Best Practices
      • Tips & Tricks
    • Google Cloud
      • Services
    • Private Cloud
  • 🔐Security & Compliance
    • DevSecOps Overview
    • DevSecOps Pipeline Security
    • DevSecOps
      • Real-life Examples
      • Scanning & Protection - Automated security tooling
        • Dependency Scanning
        • Credential Scanning
        • Container Security Scanning
        • Static Code Analysis
          • Best Practices
          • Tool Integration Guide
          • Pipeline Configuration
      • CI/CD Security
      • Secrets Rotation
    • Supply Chain Security
      • SLSA Framework
      • Binary Authorization
      • Artifact Signing
    • Security Best Practices
      • Threat Modeling
      • Kubernetes Security
    • SecOps
    • Zero Trust Model
    • Cloud Compliance
      • ISO/IEC 27001:2022
      • ISO 22301:2019
      • PCI DSS
      • CSA STAR
    • Security Frameworks
    • SIEM and SOAR
  • Security Architecture
    • Zero Trust Implementation
      • Identity Management
      • Network Security
      • Access Control
  • 🔍Observability & Monitoring
    • Observability Fundamentals
    • Logging
    • Metrics
    • Tracing
    • Dashboards
    • SLOs and SLAs
    • Observability as Code
    • Pipeline Observability
  • 🧪Testing Strategies
    • Testing Overview
    • Modern Testing Approaches
    • End-to-End Testing
    • Unit Testing
    • Performance Testing
      • Load Testing
    • Fault Injection Testing
    • Integration Testing
    • Smoke Testing
  • 🤖AI Integration
    • AIops Overview
      • Workflow Automation
      • Predictive Analytics
      • Code Quality
  • 🧠AI & LLM Integration
    • Overview
    • Claude
      • Installation Guide
      • Project Guides
      • MCP Server Setup
      • LLM Comparison
    • Ollama
      • Installation Guide
      • Configuration
      • Models and Fine-tuning
      • DevOps Usage
      • Docker Setup
      • GPU Setup
      • Open WebUI
    • Copilot
      • Installation Guide
      • VS Code Integration
      • CLI Usage
    • Gemini
      • Installation Guides - Platform-specific setup
        • Linux Installation
        • WSL Installation
        • NixOS Installation
      • Gemini 2.5 Features
      • Roles and Agents
      • NotebookML Guide
      • Cloud Infrastructure Deployment
      • Summary
  • 💻Development Environment
    • Tools Overview
    • DevOps Tools
    • Operating Systems - Development platforms
      • NixOS
        • Installation
        • Nix Language Guide
        • DevEnv with Nix
        • Cloud Deployments
      • WSL2
        • Distributions
        • Terminal Setup
    • Editor Environments
    • CLI Tools
      • Azure CLI
      • PowerShell
      • Linux Commands
      • YAML Tools
  • 📚Programming Languages
    • Python
    • Go
    • JavaScript/TypeScript
    • Java
    • Rust
  • 📖Documentation Best Practices
    • Documentation Strategy
    • Project Documentation
    • Release Notes
    • Static Sites
    • Documentation Templates
    • Real-World Examples
  • 📋Reference Materials
    • Glossary
    • Tool Comparison
    • Recommended Reading
    • Troubleshooting Guide
  • Platform Engineering
    • Implementation Guide
  • FinOps
    • Implementation Guide
  • AIOps
    • LLMOps Guide
  • Development Setup
    • Development Setup
Powered by GitBook
On this page
  • Common Branch Naming Patterns
  • 1. Feature-based Convention
  • 2. Owner-based Convention
  • 3. Release-based Convention
  • 4. Environment-based Convention
  • Multi-Cloud Development Considerations
  • Automation and Integration
  • CI/CD Pipeline Integration
  • Automatic Work Item Linking
  • Branch Naming Best Practices
  • Different Conventions for Different Development Models
  • Trunk-Based Development
  • GitFlow
  • GitHub Flow
  • Real-World Examples
  • Enterprise SaaS Project
  • Infrastructure as Code Project
  • Microservices Project
  • Automated Branch Name Enforcement
Edit on GitHub
  1. Source Control

Naming Branches

When contributing to existing projects, look for and stick with the agreed branch naming convention. In open source projects this information is typically found in the contributing instructions, often in a file named CONTRIBUTING.md.

In the beginning of a new project the team agrees on the project conventions including the branch naming strategy.

Common Branch Naming Patterns

1. Feature-based Convention

<type>/<issue-number>-<short-description>

Examples:

feature/271-add-more-cowbell
bugfix/389-fix-memory-leak
hotfix/422-critical-auth-issue
docs/129-update-readme
test/233-improve-test-coverage
refactor/156-optimize-queries
chore/111-update-dependencies

2. Owner-based Convention

<owner>/<type>/<issue-number>-<short-description>

Examples:

johndoe/feature/271-add-more-cowbell
janedoe/bugfix/389-fix-memory-leak

3. Release-based Convention

For teams working with release branches:

release/v<major>.<minor>.<patch>
release/v2.3.0
release/v2023.05
release/2023-Q2

4. Environment-based Convention

For GitOps workflows:

env/<environment-name>
env/production
env/staging
env/qa

Multi-Cloud Development Considerations

When working across multiple cloud providers, you might want to include cloud provider information in branch names:

<type>/<provider>/<issue-number>-<description>

Examples:

feature/aws/345-lambda-integration
feature/azure/389-app-service-scaling
bugfix/gcp/417-gke-networking-issue

Automation and Integration

CI/CD Pipeline Integration

Well-structured branch names can trigger specific CI/CD workflows:

# GitHub Actions example
name: Feature Branch CI

on:
  push:
    branches:
      - 'feature/**'
      - 'bugfix/**'

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Set up environment
        run: echo "Setting up environment for ${{ github.ref }}"

Automatic Work Item Linking

Branch names with issue numbers enable automatic linking in tools like Azure DevOps:

# Azure Pipelines example
trigger:
  branches:
    include:
      - feature/*
      - bugfix/*
      - hotfix/*

pool:
  vmImage: 'ubuntu-latest'

steps:
- script: |
    # Extract work item ID from branch name
    BRANCH_NAME=$(Build.SourceBranch)
    WORK_ITEM_ID=$(echo $BRANCH_NAME | grep -oP '(\d+)-' | sed 's/-//')
    echo "##vso[task.setvariable variable=workItemId]$WORK_ITEM_ID"
  displayName: 'Extract work item ID'

- script: |
    echo "Associated with work item ID: $(workItemId)"
  displayName: 'Link Work Item'

Branch Naming Best Practices

  1. Keep it simple - Names should be intuitive and easy to remember

  2. Be consistent - Once a convention is chosen, stick to it

  3. Use lowercase - Avoid case sensitivity issues across systems

  4. Use hyphens for word separation (not underscores or spaces)

  5. Keep it short - Long branch names become unwieldy

  6. Include relevant information only - Exclude redundant details

Different Conventions for Different Development Models

Trunk-Based Development

In trunk-based development, branches are short-lived and merged frequently:

feature/quick-description

or for one-day branches:

feature/2023-06-15-auth-refactor

GitFlow

For GitFlow, branches follow a more structured naming convention:

feature/feature-name
release/v1.2.3
hotfix/v1.2.3.1
bugfix/issue-description

GitHub Flow

With GitHub Flow's simplified approach:

feature/feature-name
fix/bug-fix-description

Real-World Examples

Enterprise SaaS Project

feature/ACME-1234-implement-sso
bugfix/ACME-1456-fix-pagination
hotfix/v2.5.1-critical-security-patch
release/v2.6.0
docs/ACME-1500-update-api-docs

Infrastructure as Code Project

feature/aws/vpc-peering-support
feature/azure/vnet-gateway-configuration
bugfix/terraform/state-locking-issue
refactor/crossplane/simplify-resource-definitions

Microservices Project

feature/user-service/add-password-reset
feature/payment-service/add-stripe-integration
bugfix/order-service/fix-race-condition

Automated Branch Name Enforcement

Consider enforcing branch naming conventions through hooks or CI checks:

#!/bin/bash
# Git hook to verify branch naming convention
# Save as .git/hooks/pre-push and make executable

BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_PATTERN="^(feature|bugfix|hotfix|release|docs|test|refactor|chore)\/[a-z0-9][a-z0-9-]*$"

if ! [[ $BRANCH_NAME =~ $BRANCH_PATTERN ]]; then
  echo "ERROR: Branch name '$BRANCH_NAME' does not match the required pattern."
  echo "Branch names should follow: <type>/<description> (e.g., feature/add-login)"
  exit 1
fi
PreviousCreating a ForkNextPull Requests

Last updated 5 hours ago

The examples above are just that - examples. The team can choose to omit or add parts. Choosing a branch convention can depend on the development model (e.g. ), model, tools used in managing source control, matter of taste etc. Focus on simplicity and reducing ambiguity; a good branch naming strategy allows the team to understand the purpose and ownership of each branch in the repository.

trunk-based development
versioning