# Clone Git Repository

Connect's Update Flow enables your edge devices to clone from a Git repository whether you are using a public Git repository or your own private repository for your code.

When you use the Clone Git Repository step type, the edge devices will use the git clone command to pull your Git repository

## Prerequisites

* JFrog Connect account.&#x20;
* [GitHub account](https://docs.github.com/en/get-started/signing-up-for-github/signing-up-for-a-new-github-account)
* If you are using a private Git repository, add it to your repository list according to the procedure in [Add Private Git](https://docs.connect.jfrog.io/administration-new-ui/general-settings/registry/add-private-git).
* In the [Create Update Flow](/features-new-ui/deployments/update-flow.md) procedure, complete through Step 3.

## Add a Step and Configure the Step Type

To add a step and configure the step type you have chosen, do the following:

1. In the Create New Flow page, click **Add Step**.
2. In the **Step Type** dropdown list, choose **Clone Git Repository**, give the step a **Step** **Name**, and create the step. You can change the step name afterwards if you need to.
3. **Private Git**: Runs add-apt-repository to add the JFrog Repository to the\
   device system's list of available sources. If turned off, the JFrog Repository will be removed after\
   package installation. Mark this only if you are using a private Git repository. Choose the account where your repository exists.

<div align="left"><figure><img src="/files/lCBII2Qy1QymMfizyog4" alt="" width="563"><figcaption></figcaption></figure></div>

4. **Git Repository URL**: Enter the URL of the Git, for example, `https://github.com/jfrog-connect/app-repo.git`.
5. **Device Path**: Enter the path where the Git will be installed on the device, for example, `/home/user/App`.

{% hint style="success" %}
**Tip**: The folder on the device must exist beforehand. Otherwise, the update will fail. Connect does not automatically create folders when deploying updates. You can create a folder using the Run Command step type.
{% endhint %}

6. (Optional) Configure your [On Failure](/features-new-ui/deployments/update-flow/on-failure-and-rollback.md) policy and instructions for rolling back.
7. Save your step configuration.

## What’s Next?

Learn more about configuring your [On Failure](/features-new-ui/deployments/update-flow/on-failure-and-rollback.md) policy and instructions for rolling back.


---

# 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.connect.jfrog.io/features-new-ui/deployments/update-flow/step-types/clone-git-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.
