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

1

Name Branch

  1. Click Code from the left sidebar menu.

  2. Click Create Branch.

  3. In the New branch name textbox, enter a descriptive name for the branch.

2

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.

Branch
Use When

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.

  1. Click the Source branch dropdown menu.

  2. Search or browse for the desired source branch.

  3. Select a source branch to branch off from (commonly the main branch).

3

Jira Integration

If your DevOps is integrated with Jira, you can select:

  • Integration - The Jira account to use.

  • Project - Link to a specific Jira project.

  • Stories - Attach user stories from Jira to the branch.

For complete instructions on creating a branch integrated with Jira, see the following article.

  • [Coming Soon] Creating a Branch with Jira Integration

4

Create a New Branch

  1. Click Create branch.

  2. After the branch is created, you will be taken to the branch's Components tab.

  3. The new branch is listed on the Code page.

Last updated

Was this helpful?