Cloning Repositories
When you have a central repository in place, you can clone it to establish development, test, and production environments. In Workbench, this means a project designated for development, test, or production purposes.
When you clone a repository, it is copied from the centralized location to the specified project root, along with the contents of the working directory. In addition, Git sets the relationship between the two repositories.
-
When you are connected to the server, select Tools > Version Control > Clone.
The Git Clone dialog box opens.:
-
Verify that Use external Git Repository is selected.
-
In the URL box, enter the URL of the repository that you want to clone.
-
To the right of the the Destination box, click the Browse icon … and navigate to your projects folder.
-
Select Add Folder, enter the name for the new cloned project, and then click OK.
The path appears in the Git Clone Destination box.
-
Select Clone to proceed, or Cancel to abort the procedure.
-
When you are connected to the server, select Tools > Version Control > Clone.
The Git Clone dialog box opens.
-
Select Use local Repository as a source.
-
To the right of the Path box, click the Browse icon … and navigate to the server and repository that you want to clone.
-
To the right of the Destination box, click the Browse icon … and navigate to your projects folder.
-
Select Add Folder, enter a name for the new cloned project, and then click OK.
The path appears in the Git Clone Destination box.
-
Select Clone to proceed, or Cancel to abort the procedure.
NOTE: Cloning is also available from the New Project dialog.
TIP: A central repository can be created using the Git command line or a Git platform tool such as GitLab. See https://docs.gitlab.com/ee/university/training/topics/getting_started.html.