# Repositories

Using the Repository Setup dialog, a repository can be created or cloned.  When there's no existing repositories, this is accessed by the 'Add Repository' button shown by the explorer, otherwise it's accessible via the context menu shown at the top of the explorer for existing repositories.

![](/files/-LnC_ox69vBpgeUfhk6G)

Once created or cloned, the new repository will be shown in the JadeGit Changes explorer.  When creating, the [initial default branch](https://git-scm.com/docs/git-init#Documentation/git-init.txt-initdefaultBranch) is determined using your global git configuration.  When cloning, the default branch of the remote repository is used.

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


---

# 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://jadelab.gitbook.io/jadegit/0.11.1/developers/getting-started/repositories.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.
