# 3. Remote repositories

You can connect given workspace with Git repository. This page allows you to perform the most important operations:

* Save / Update / Delete settings per workspace
* Assign git clone command. Git clone command is used to clone entire remote repository to temporary virtual environment and perform other git operations like: status / add / commit / etc.

Example git clone command format:

{% hint style="info" %}
Git clone command is stored inside Atlassian App Secret storage.

If you need to rotate the token used in string below, replace the entire string and save it again.
{% endhint %}

```
git clone https://USER_NAME:APP_TOKEN@bitbucket.org/ORG_NAME/REPO_NAME.git
```

1. Select workspace on which you will perform git operation or you want to save / update / delete connection settings.
2. Git clone command. Must contain username and token. E.g. git clone <https://USER\\_NAME:APP\\_TOKEN@bitbucket.org/ORG\\_NAME/REPO\\_NAME.git>
3. Branch name that will be connected with given workspace.
4. Save or update git connection settings related to selected workspace. After this workspace will have "Connected" tag in workspace browser.
5. Delete git connection settings related to selected workspace. After this workspace will have "Not connected" tag in workspace browser.
6. Based on provider connection and branch setup, repository content will be downloaded into workspace replacing all files.
7. Based on provider connection and branch setup, repository content will be uploaded into Git repository replacing all files. You can add commit message during the operation.
8. Based on provider connection and branch setup, workspace content will be compared by 'git status' command with remote repository.
9. Git operation results will be appearing here.

<figure><img src="https://2582686426-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn7nTpq2xv8EGbzULdTCb%2Fuploads%2FjxpDgKZOpVV46J41FWsi%2FRepo.png?alt=media&#x26;token=859d7683-096a-4df5-bcf5-05570cf3beed" 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://docs.silessian.com/planapply-for-jira-cloud/configuration/get-started-app-configuration/3.-remote-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.
