1.3. Cloning a Repository
kie-config-cli tool cannot be used to clone arbitrary repositories - run git clone or one of the following options instead.
Cloning a Repository in Business Central
Important
admin role can clone repositories.
Procedure 1.3. Using Business Central to Clone a Repository
- In Business Central, go to → .
- On the perspective menu, choose → .
- The Clone Repository pop-up window is displayed.

Figure 1.3. Clone Repository Dialog Window
- In the Clone Repository dialog window, enter the repository details:
- Enter the Repository Name to be used as the repository identifier in the Asset repository and select the Organizational Unit it should be added to.
- Enter the URL of the Git repository:
- for a local repository, use
file:///PATH_TO_REPOSITORY/REPOSITORY_NAME; - for a remote or preexisting repository, use
https://github.com/USERNAME/REPOSITORY_NAME.gitorgit://HOST_NAME/REPOSITORY_NAME.Important
It is important to use the HTTPS or Git protocol instead of a SCP-style SSH URL. Business Central does not support the basic SSH URL and fails with Invalid URL format.
Note
The file protocol is only supported for READ operations. WRITE operations are not supported. - If applicable, enter the User Name and Password of your Git account to be used for authentication.
- Click Clone.
- A confirmation prompt with the notification that the repository was created successfully is displayed. After clicking , the repository is being indexed. Some workbench features may be unavailable until indexing has completed.
Cloning a Repository Using the REST API
POST REST API call. This call creates or clones (according to the value of the requestType parameter) the repository defined by the JSON entity.
RepositoryRequest instance. Returns a CreateOrCloneRepositoryRequest instance.
Example 1.3. Cloning a Repository Using the Curl Utility
{
"name" : "clonedRepository",
"description" : null,
"userName" : null,
"password" : null,
"requestType" : "clone",
"gitURL" : "git://localhost:9418/example-repository",
"organizationalUnitName" : "helloWorldUnit"
}curl -X POST 'localhost:8080/business-central/rest/repositories/' -u USERNAME:PASSWORD -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{"name":"clonedRepository","description":null,"username":null,"password":null,"requestType":"clone","gitURL":"git://localhost:9418/example-repository","organizationalUnitName":"helloWorldUnit"}'
Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.