Clone Git Repository
The Clone Git Repository step type enables you to pull your latest software version from a Git repository directly to your edge devices.
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.
If you are using a private Git repository, add it to your repository list according to the procedure in Add Private Git.
In the Create 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:
In the Create New Flow page, click Add Step.
In the Step Type dropdown list, choose Clone Git Repository, give the step a Step Name, and create the step.
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.

Git Repository URL: Enter the URL of the Git, for example,
https://github.com/jfrog-connect/app-repo.git
.Device Path: Enter the path where the Git will be installed on the device, for example,
/home/user/App
.
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.
(Optional) Configure your On Failure policy and instructions for rolling back.
Save your step configuration.
What’s Next?
Learn more about configuring your On Failure policy and instructions for rolling back.
Was this helpful?