For the complete documentation index, see llms.txt. This page is also available as Markdown.

Using Smart Merge

Written for the Old UI

Overview

In DevOps, Smart Merge lets you quickly merge changes from a Source branch into a Target branch. This article walks you through how to perform a Smart Merge step by step. These instructions don’t cover Smart Merges with conflicting changes; to learn how to resolve conflicts, see the following article.

Smart Merge vs Pull Request

Smart Merge and Pull Request both merge changes from a source branch into a target branch, but each suits a different workflow.

Smart Merge is a streamlined, single-step process that merges changes directly between branches without requiring a Pull Request or team approval. It works well for time-sensitive situations, such as urgent fixes or critical changes that need to ship quickly.

A Pull Request, by contrast, is a structured, multi-step process built for team collaboration. It lets multiple reviewers inspect the changes, request revisions, and formally approve them before merging.

As a general rule, use a Pull Request when changes need oversight or sign-off from other team members, and choose Smart Merge when you need to integrate changes quickly.

To learn more about Pull Requests, see the following article.

Run Smart Merge

1

Select Source Branch and Run Smart Merge

  1. Click Code from the left sidebar menu.

  2. Select the branch from the list to use as the source branch for the merge.

  3. Click the Three Vertical Dots â‹® dropdown menu next to Deploy.

  4. Click Smart Merge.

2

Select Target Branch

  1. Click Select for the branch you want to be the target of the merge.

  2. Click Next.

3

Resolve Conflicts

After you select the target branch, Smart Merge compares the two branches to identify changes it cannot merge automatically. When the check finishes, you will be notified whether the branch can be merged or whether you must resolve conflicts first. If there are no conflicts, skip this step and continue to Review Changes.

To resolve Smart Merge conflicts, you can Retain Target Changes or Overwrite Target Changes for each change to achieve the desired outcome. The following article explains the process in detail.

4

Review Changes

Once any conflicts are resolved, you must review the changes to each component with the Component Diff Viewer. All components with changes are listed in the Components with Changes list on the left. Clicking a component opens it in the Diff Viewer so you can review the changes.

  1. To review a component's changes, select it from the Components with Changes list on the left.

  1. When reviewing a component, the source code for Target and Source is displayed side by side, with differences highlighted.

    1. Red: Lines to be removed.

    2. Green: Lines to be added.

  2. Repeat the review process for each component.

If there are any changes from the source that you do not want to merge into the target, you must cancel the merge and make the changes in the source. Once the changes are made, you can start the merge again.

5

Merge Changes

Once all changes are reviewed, you can merge the source branch into the target branch.

  1. Click Merge.

  2. Once the Merge job starts, you will be taken to the branch Activities tab, where you can check the job's status.

The Merge job appears on the Activities tab for both the target and source branches.

Last updated

Was this helpful?