Agile Landscape - Entry: Branching Strategy

February 15, 2024 · This page is part of my Agile Landscape project.

Branching Strategy is part of the following frameworks:

What ChaptGPT says about it...

Branching Strategy in the context of DevOps

Branching Strategy in DevOps

In DevOps, a Branching Strategy refers to the approach and guidelines followed for managing code branches in a version control system like Git. It plays a crucial role in enabling collaboration, ensuring code quality, and facilitating continuous integration and delivery practices.

Types of Branching Strategies

  1. Mainline/Branch-Per-Feature:

    • Each feature or task has its own branch created from the mainline branch.
    • Changes are merged back to the mainline branch through pull requests or merge requests once completed.
  2. GitFlow:

    • Follows a specific branching model with branches like master, develop, feature, release, and hotfix.
    • Provides a structured approach for managing features, releases, and hotfixes.
  3. Trunk-Based Development:

    • All developers work on a single branch (trunk/main branch).
    • Encourages small, frequent code commits and continuous integration to avoid long-lived feature branches.

Importance of Branching Strategy in DevOps

Resources:

  1. Git Branching Strategies - Atlassian
  2. A Successful Git Branching Model - nvie.com
  3. Trunk Based Development - ThoughtWorks
Drag to pan, scroll or pinch to zoom. Click an entry to open it.

Google Links

Except where otherwise noted, content on stephanhagemann.com is licensed under CC BY 4.0 by Stephan Hagemann