GIT |
SVN |
There is an existing project in repository. Your task is to create a new server project with content from the repository.
Eclipse Plugin - EGit |
External GUI Tool - TortoiseGit |
External Command Line Tool |
To version files with git, you can use Eclipse plugin (EGit), external GUI or command line tool.
Clone the remote git repository:
Switch to Git perspective.
In the Git Repositories tab, click Clone a git and add the clone to this view.
Enter the remote repository location and password.
Choose branches to be tracked
Enter path for local repository.
Switch back to Clover perspective.
Import the project.
From the File menu, choose Import.
Choose
→ and click .Choose Existing local repository.
Choose the repository.
Select Import existing projects option.
Select projects that should be imported.
Convert the project to Server Project.
Right click the project in Navigator and choose Convert to server project.
Enter CloverETL 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 Use local content only (sandbox will be cleaned) option.
You have a new server project. The project has content of master branch of local repository.
EGit allows you to have more projects within the save repository.
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.
Clone the git repository
Type the command
git clone path_to_remote path_to_local
e. g.
git clone ssh://[email protected]:30022/home/git/project1 project1
Import the project.
Convert project to Server Project.
Eclipse Plugin - Subclipse |
External GUI Tools - TortoiseSVN |
Command Line Tools |
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 project to working sets.
Convert the project to Server Project.
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 Checkout directory text field. Click .
TortoiseSVN complains that the directory is not empty. Choose .
Import the project.
Convert the project to Server Project.
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
forces svn
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.