> For the complete documentation index, see [llms.txt](https://cumbucadev.gitbook.io/github-essentials/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cumbucadev.gitbook.io/github-essentials/dia-4/sua-vez/exercicio-2.md).

# Exercício 2

## Fazendo seu primeiro merge

Neste exercício, você vai praticar a criação de um novo branch, realizar uma alteração nele, e depois juntar essa mudança de volta ao branch principal do seu projeto `lista-de-leituras`.

### ✅ Tarefa

Crie um branch separado, faça uma alteração no arquivo `lidos.txt` adicionando um novo título de livro, registre essa alteração com um commit e depois una o conteúdo desse branch à branch principal do repositório.

💭 Reflita:

* Que tipo de merge o Git realizará?
* O Git criará um commit de merge ou apenas avançará o ponteiro?
* Como ficará o histórico no log? O commit feito no outro branch aparecerá no main?

***

#### 💡Dica&#x20;

1. Crie um novo branch com um nome descritivo, relacionado à alteração que você vai fazer.
2. Nesse branch, edite o arquivo `lidos.txt` e adicione uma nova linha com um outro título de um livro que você já leu.
3. Salve o arquivo, adicione a alteração ao Git e faça um commit.
4. Volte para o branch principal (`main`).
5. Faça o merge do branch que você criou com o `main`.
6. Verifique o log e o status do repositório depois do merge. O que você observa?


---

# 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:

```
GET https://cumbucadev.gitbook.io/github-essentials/dia-4/sua-vez/exercicio-2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
