> 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-11/forks-e-pull-requests/clonando-um-fork.md).

# Clonando um Fork

Assim como fizemos anteriormente, na seção [Clonando o Repositório hello-world](/github-essentials/dia-9/interagindo-com-o-repositorio-remoto-hello-world/clonando-o-repositorio-hello-world.md), vamos clonar o novo fork criado.

## Passo a Passo

### Copiar URL do Repositório

Acesse a página principal do seu fork no GitHub, algo como `https://github.com/sua-conta/PRimeiro-fork` e clique no botão **Code**.

<figure><img src="/files/STfSB85HTIwkcShGlnZt" alt="" width="147"><figcaption><p>Botão code.</p></figcaption></figure>

<figure><img src="/files/Wm79T3hSC7EJhxlewOdg" alt=""><figcaption><p>Página principal do repositório após o clique no botão code.</p></figcaption></figure>

Na janela de diálogo que irá se abrir, clique em **SSH.**

<figure><img src="/files/v9k0DNdB9cMbO2Gg6SaL" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/59LWnTfdEROOarSK80uA" alt=""><figcaption></figcaption></figure>

Em seguida, clique no botão de copiar que aparecerá ao lado da URL do repositório.

<figure><img src="/files/0svUBTiu8vnJPqH2UZav" alt="" width="108"><figcaption><p>Botão "copiar".</p></figcaption></figure>

<figure><img src="/files/cSIjcVWZHX2ipzTIW2iF" alt=""><figcaption><p>Copiar link do repositório remoto</p></figcaption></figure>

Agora, a URL para o seu repositório remoto **PRimeiro-fork** está copiada. Iremos utilizá-la no terminal para clonar o projeto localmente a seguir.

### Clonar o Repositório Localmente

Agora execute no terminal o seguinte comando - substituindo `<URL-COPIADA>` pelo valor correspondente.

```bash
git clone <URL-COPIADA>
```

Exemplo:

```bash
git clone git@github.com:aprendizCumbucaDev/PRimeiro-fork.git
▶ Cloning into 'PRimeiro-fork'...
remote: Enumerating objects: 23, done.
remote: Counting objects: 100% (23/23), done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 23 (delta 3), reused 20 (delta 3), pack-reused 0 (from 0)
Receiving objects: 100% (23/23), 20.38 KiB | 5.09 MiB/s, done.
Resolving deltas: 100% (3/3), done.
```

Para verificar se o projeto foi clonado com sucesso, use o comando `dir` (no Windows) ou `ls` (no Linux/macOS) para listar os arquivos do diretório atual. Você deverá ver a pasta **PRimeiro-fork** na lista.

***

Agora já temos tudo pronto para editar o repositório localmente.


---

# 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-11/forks-e-pull-requests/clonando-um-fork.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.
