> For the complete documentation index, see [llms.txt](https://favelaware.gitbook.io/favelaware/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://favelaware.gitbook.io/favelaware/3-git-e-github/3.6-github.md).

# 3.6 GitHub

### 🐙 O que é o GitHub?

***

#### 🧠 Explicando de forma simples

📦 **Git** = Ferramenta para salvar versões do seu projeto no seu computador.\
☁️ **GitHub** = Lugar na internet onde você **guarda e compartilha seus projetos** com o mundo (como uma “nuvem para código”).

💡 É como o **Google Drive dos programadores**, mas feito só pra projetos com **código e controle de versão**.

***

### 🤝 O que dá pra fazer no GitHub?

| ✅ O que dá pra fazer                      | Exemplo prático                                  |
| ----------------------------------------- | ------------------------------------------------ |
| Guardar seus projetos                     | Sites, bots, apps, estudos                       |
| Compartilhar com outras pessoas           | Colegas, professor, comunidade                   |
| Trabalhar em grupo                        | Cada um numa parte diferente (branch)            |
| Ver histórico de versões                  | Ver o que mudou, quando e por quem               |
| Contribuir com projetos de outras pessoas | Ajudar em projetos open-source, via Pull Request |

***

### 📸 Interface básica do GitHub

Quando você entra em um repositório (repo), verá:

```
📁 Arquivos e pastas
📝 Commits feitos
📦 Branches (galhos)
🚀 Releases (versões)
🔀 Pull Requests (pedidos de mudança)
🧪 Actions (automatizações)
🔧 Settings (configurações)
```

***

### 📂 O que é um repositório (repo)?

É como uma **pasta online** onde seu projeto vive.

🔑 Um repo pode ser:

* **Público** → qualquer um vê
* **Privado** → só você (ou seu time) vê

***

### 🧪 Como começar a usar o GitHub?

#### 1. Crie sua conta grátis:

👉 [https://github.com](https://github.com/)

#### 2. Instale o Git no seu PC:

👉 [https://git-scm.com](https://git-scm.com/)

#### 3. Crie um repositório no GitHub:

* Clique no botão verde **"New"**
* Dê um nome (ex: `meu-primeiro-projeto`)
* Escolha: Público ou Privado
* Marque ✅ “Add a README”

#### 4. Copie o link do repositório

***

### 🔁 Conectando Git local com GitHub

Depois de criar um repo no GitHub, no seu terminal:

```bash
git init
git remote add origin https://github.com/seunome/meu-projeto.git
git add .
git commit -m "Primeiro commit"
git push -u origin main
```

💡 Agora seu projeto está salvo **no seu PC** e **no GitHub**.

***

### 🌍 GitHub é rede social também?

Sim! Ele tem perfil, seguidores e contribuições públicas.

| 📌 O que aparece no seu perfil? |
| ------------------------------- |
| Repositórios públicos           |
| Commits feitos                  |
| Pull Requests enviados          |
| Contribuições em projetos       |

👀 Recrutadores olham seu GitHub. Tenha um portfólio limpo, organizado e atualizado.

***

### 🛠️ Dicas de uso para iniciantes

* Sempre use um README.md explicando o projeto.
* Nomeie bem os repositórios (nada de “testezinho123”).
* Faça commits claros (`"ajusta botão de envio"`, e não `"aaaa"`).
* Comece com projetos simples (calculadora, to-do list, site pessoal).
* Atualize sempre. Seu GitHub mostra sua evolução.

***

### 🏁 Desafio simples

1. Crie uma conta no GitHub.
2. Crie um repositório chamado `ola-github`.
3. Faça um `README.md` explicando quem você é e o que está aprendendo.
4. Suba pela interface do site ou com Git.
5. Mande para um amigo ou professora. 🎉


---

# 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://favelaware.gitbook.io/favelaware/3-git-e-github/3.6-github.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.
