git clone path_to_remote path_to_local
Initial Check-Out of Project from Repository
There is an existing project in the repository. Your task is to create a new server project with content from the repository.
GIT
To version files with Git, you can use Eclipse plugin (EGit), external GUI or command line tool.
Eclipse Plugin - EGit
-
Clone the remote Git repository:
Switch to Git perspective.
In the Git Repositories tab, click Clone a Git Repository and add the clone to this view.
Enter the remote repository location and password.
Choose branches to be tracked.
Enter the path for the local repository.
Switch back to CloverDX perspective.
-
Import the project.
From the File menu, choose Import.
Choose
and click Next.Choose Existing local repository.
Choose the repository.
Select the Import existing projects option.
Select projects that should be imported.
-
Convert the project to Server Project.
Right click the project in Project Explorer and choose Convert to server project.
Enter CloverDX Server URL, User name and Password.
Select Create new sandbox. Enter the sandbox Name.
Select type of merge. As you created a new sandbox, you can use the Use local content only (sandbox will be cleaned) option.
You have a new server project. The project has content of a master branch of local repository.
EGit allows you to have more projects within the same repository.
External GUI Tool - TortoiseGit
-
Clone the remote repository.
In File Explorer, right click and choose Git Clone.
In Git clone - TortoiseGit dialog, enter the path to remote repository and the path to local repository.
Click OK.
Enter password.
Close the cloning log window.
-
Import the project.
-
Convert project to Server Project.
External Command Line Tool
-
Clone the git repository
Type the command
e. g.
git clone ssh://git@127.0.0.1:30022/home/git/project1 project1
-
Import the project.
-
Convert project to Server Project.
SVN
Eclipse Plugin - Subclipse
-
Import project from SVN.
Choose
.Choose
.In Select/Create Location step of the wizard, choose Create new repository location.
Specify location of SVN repository. The URL for remote projects can be, e.g.
https://svn.example.org/svn
. The URL for local projects can be, e.g.file:///Users/clover/repositories/svn/repo1
.Select the folder (project) to be imported.
In Check Out As step, choose Check out as a project in the workspace and change ProjectName if necessary.
Optionally, change the location to which the project will be checked or add the project to working sets.
-
Convert the project to Server Project.
External GUI Tools - TortoiseSVN
You can use an external graphical tool to check out an svn project. The following steps describe checking out of an existing project with help of TortoiseSVN.
-
Check-out the content of projects from SVN:
Right click the project directory in File Explorer and choose SVN Checkout…​ from context menu.
Delete the last entry from the Checkout directory text field. Click OK.
TortoiseSVN complains that the directory is not empty. Choose Yes.
-
Import the project.
-
Convert the project to Server Project.
Command Line Tools
-
Check out the project from svn:
Move to the directory with the Project in workspace (on the computer with Designer).
Type
svn checkout --force /path/to/repository .
The--force
forcessvn
to overwrite the content created during the project creation. Otherwise, you would have to resolve conflicts after checkout. -
Import the project.
-
Convert the project to Server Project.