> For the complete documentation index, see [llms.txt](https://docs.flosum.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flosum.com/devops/code/branch-actions/adding-components-to-a-branch.md).

# Adding Components to a Branch

{% hint style="warning" %}

#### Written for the Old UI

This article was written for the old UI. The instructions are still usable, but the screenshots are outdated. In some cases, items referenced in the instructions have moved or changed. If you cannot find an item, see the [Where Did It Go](/devops/new-ui-ux-transition/where-did-it-go.md) article.
{% endhint %}

## ![](/files/RXx59Hu9EyPCisSQ0YzA) Overview

When a branch is first created, its Components tab contains metadata inherited from the Main Branch or from the source branch used during creation. You can add more metadata at any time using the Add Components button.

{% hint style="info" %}

#### Best Practices

* Always add components from the correct Salesforce org to avoid mismatches.
* Review Activities for conflicts before proceeding with pull requests or merges.
* Keep commit messages meaningful so you can track why specific components were added.
  {% endhint %}

## Adding Components

{% stepper %}
{% step %}

### Select a Branch

1. Click **Code** from the left sidebar menu.
2. Select a branch from the list.

   <div align="left"><figure><img src="/files/flXLxSkYhe7MvSVa0NQ4" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### Add Components

1. Click **Add Components**.

   <div align="left"><figure><img src="/files/aKxTvTDQrd8wcAEjUE96" alt="" width="563"><figcaption></figcaption></figure></div>
2. Click **Select** for the Salesforce organization you want to retrieve metadata from.
3. Click **Next**.

   <div align="left"><figure><img src="/files/Ldrn0qBVVKmZmKYMuDF5" alt="" width="563"><figcaption></figcaption></figure></div>
4. Use the **Search**, **Filter**, and **Sort** options to find the components to add.

   <div align="left"><figure><img src="/files/mlx1SmDZdlb2oAIJaNuS" alt="" width="563"><figcaption></figcaption></figure></div>
5. Click the **Add** button for each component to add.

   <div align="left"><figure><img src="/files/20WUAi5t1sjJkElUh76C" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### Commit Changes

1. Enter a commit message.
2. Click **Commit**.

   <div align="left"><figure><img src="/files/tXiRsR22GrPS7d7IEpz6" alt="" width="563"><figcaption></figcaption></figure></div>
3. After committing, the **Activities** tab will show the **Commit To Branch** job you just started.

   <div align="left"><figure><img src="/files/J7QXer1LGjwvvO3XAnX8" alt="" width="563"><figcaption></figcaption></figure></div>
4. Once the job is complete, you will see the components you added on the **Components** tab.

   <div align="left"><figure><img src="/files/2FAthMw7OzzYDzvZ3H0p" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.flosum.com/devops/code/branch-actions/adding-components-to-a-branch.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
