> 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-7.md).

# Exercício 7

## Ignorando arquivos

Neste exercício, você vai praticar como criar um arquivo `.gitignore` para evitar que arquivos desnecessários ou sensíveis sejam adicionados ao seu repositório Git.

Durante o desenvolvimento, você pode criar arquivos temporários, como anotações ou rascunhos, que não precisam ser incluídos no controle de versão.

Por exemplo, imagine que agora você tem um arquivo chamado `rascunho.txt` onde anota ideias soltas ou trechos que ainda não decidiu adicionar oficialmente ao projeto. Como esse arquivo é pessoal e temporário, você quer que o Git o ignore para evitar que ele apareça nos commits.

### ✅ Tarefa

No diretório do projeto **lista-de-leituras**, crie o arquivo `rascunho.txt` e configure o Git para ignorá-lo, garantindo que ele não seja rastreado.

***

#### 💡Dica&#x20;

1. O Git ignora arquivos com base no conteúdo do arquivo `.gitignore`.
2. Arquivos ignorados não aparecem ao rodar `git status`, desde que nunca tenham sido adicionados ao Git antes.


---

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