> 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/devops-pt-br/codigo/acoes-da-branch/adicionando-componentes-a-uma-branch.md).

# Adicionando componentes a uma branch

## ![](https://2465342021-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2FG5ZbxX918xOHwbAwAJ4n%2FSummary2-Small-Icon.svg?alt=media\&token=da26a67f-ff7f-47b3-8669-06be960dc2d7) Visão geral

Quando uma branch é criada pela primeira vez, a guia Componentes contém metadados herdados da Branch Principal ou da branch de origem usada durante a criação. Você pode adicionar mais metadados a qualquer momento usando o botão Adicionar Componentes.

{% hint style="info" %}

#### Boas práticas

* Adicione sempre componentes da organização Salesforce correta para evitar incompatibilidades.
* Revise as Atividades em busca de conflitos antes de prosseguir com pull requests ou merges.
* Mantenha as mensagens de commit significativas para que você possa acompanhar por que componentes específicos foram adicionados.
  {% endhint %}

## Adicionando Componentes

{% stepper %}
{% step %}

### Selecione uma branch

1. Clique **Branches** no menu da barra lateral esquerda.
2. Selecione uma branch na lista.

   <div align="left"><figure><img src="https://2465342021-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2FDQ0b2amkcDKa0OD8TunG%2FAddingComponentsToABranch-S01-01.png?alt=media&amp;token=d2739124-cf76-4a8f-b07e-4610ec5d2b7a" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### Adicionar Componentes

1. Clique **+ Adicionar Componentes**.

   <div align="left"><figure><img src="https://2465342021-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2FNjXIUIxRYH3XPHmCtJTW%2FAddingComponentsToABranch-S02-01.png?alt=media&amp;token=a8ece3d2-8bc6-41d2-9129-2fe0c1908193" alt="" width="563"><figcaption></figcaption></figure></div>
2. Clique **Selecione** para a organização Salesforce da qual você deseja recuperar metadados.
3. Clique **Próximo**.

   <div align="left"><figure><img src="https://2465342021-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2FUlOkQ5KjsX7P2cCAzQjz%2FAddingComponentsToABranch-S02-02.png?alt=media&amp;token=aa1f76cd-5144-4393-a798-45d1224c84b2" alt="" width="563"><figcaption></figcaption></figure></div>
4. Use as **Pesquisar**, **Filtro**, e **Classificar** opções para encontrar os componentes a serem adicionados.

   <div align="left"><figure><img src="https://2465342021-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2FWIGK0gCwLybSr2zQwtzf%2FAddingComponentsToABranch-S02-03.png?alt=media&amp;token=68e3bdbe-eeff-4927-beab-bfae04fd5c39" alt="" width="563"><figcaption></figcaption></figure></div>
5. Clique no **+ Selecionar** botão para cada componente a ser adicionado.
6. Clique **Próximo**.

   <div align="left"><figure><img src="https://2465342021-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2F7vFkUEbdwM0iwnXtGGmn%2FAddingComponentsToABranch-S02-04.png?alt=media&amp;token=1099cc20-4abd-48ad-92c3-077e541d31cf" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### Confirmar alterações

1. Digite uma mensagem de commit na caixa de texto.
2. Clique **Commit**.

   <div align="left"><figure><img src="https://2465342021-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2F5ss2qGZWHI5659eaf71Q%2FAddingComponentsToABranch-S03-01.png?alt=media&amp;token=d811a145-48ae-4ca6-a8fc-5501dbca92e9" alt="" width="563"><figcaption></figcaption></figure></div>
3. Depois de fazer o commit, a **Atividades** guia mostrará a **Commit para a Branch** tarefa que você acabou de iniciar.

   <div align="left"><figure><img src="https://2465342021-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2FQWkeAPN3H88I2FZavoJ2%2FAddingComponentsToABranch-S03-02.png?alt=media&amp;token=4239cd57-0c8c-4f05-876d-2f969f8403a8" alt="" width="563"><figcaption></figcaption></figure></div>
4. Quando a tarefa for concluída, vá para a **Componentes** guia para ver os componentes que você adicionou.

   <div align="left"><figure><img src="https://2465342021-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2F6TwrOIINas1U2v0bnzvK%2FAddingComponentsToABranch-S03-03.png?alt=media&amp;token=61eeb1f3-7cdf-4e9e-86f4-a92a193bf240" 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/devops-pt-br/codigo/acoes-da-branch/adicionando-componentes-a-uma-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.
