# Clone a repository

Cloning a repository sets up a local copy (clone) allowing you to work on projects, make changes and contribute the changes to the main repository. This is crucial for a collaborative development process allowing multiple contributors to work simultaneously, streamlining contributions and minimizing conflicts.

Follow these steps to clone a repository on Protocol.Land:

{% hint style="info" %}
Note: Ensure you have the [git remote helper](https://www.npmjs.com/package/@protocol.land/git-remote-helper) installed and properly configured to interact with repositories hosted on Protocol.Land using the command line.
{% endhint %}

1. Navigate to the main page of the repository you wish to clone.
2. On the top-right corner of the page, click “Clone”.\
   ![](/files/V4Z90DdVI60tyiBIUhVZ)
3. A modal will appear displaying the command to clone the repository. Use the Copy Icon to copy this URL.\
   ![](/files/AyZM7RZqQm09hnmqQTvy)
4. Open your command line interface (CLI).
5. Paste and execute the copied command as follows:

```bash
git clone <repo_URL> repo_name
```

6. This creates a local copy of the repository in a new directory named `repo_name`.


---

# Agent Instructions: 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://docs.protocol.land/working-with-repositories/clone-a-repository.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.
