# 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](https://docs.connect.jfrog.io/features-new-ui/deployments/update-flow) 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="https://1679291640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOX8HIrQ8f257lv49Od1Z%2Fuploads%2FQexDaT5JBOtMPGmyfU5l%2Fclone-git-repository-nui-01.png?alt=media&#x26;token=dc69ac8b-0f0c-4e5e-b5ef-a66ab478ea20" 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](https://docs.connect.jfrog.io/features-new-ui/deployments/update-flow/on-failure-and-rollback) policy and instructions for rolling back.
7. Save your step configuration.

## What’s Next?

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