Creating a Branch
Create a new branch from an existing source branch to manage isolated development work.
Overview
Branches in DevOps allow developers to isolate changes, test new features, and deploy safely. You can create a new branch from an existing source, like main or another feature branch. This article explains how to create a new branch.
Benefits of Creating Branches
Creating branches in your development process has several advantages:
Isolated changes: All commits and changes can be made in isolation, without impacting other branches.
Merge flexibility: Branches can be integrated into other branches through pull requests.
Feature development: Develop new features without disturbing the main development line.
Hotfix preparation: Create dedicated branches for urgent production fixes.
Release stabilization: Use release branches for testing and stabilizing code before deployment.
Creating a New Branch
Choose Source
By default, most new branches are created from main since it’s synced with Production. However, you can select the source based on where you want to start your new branch, ensuring it begins with the right context for your work.
Main
Starting fresh work aligned with Production.
Release
Your work should include all changes already merged and staged for release.
Feature
Collaborating with another developer, so your branch inherits their ongoing changes instead of starting clean.
Click the Source branch dropdown menu.
Search or browse for the desired source branch.
Select a source branch to branch off from (commonly the main branch).

Last updated
Was this helpful?





