Importing from the local repository

 

Even though you can work with your projects directly in the GIT repository, you can also import the necessary projects to your workspace.  

 

To import a project from the local GIT repository to the workspace, follow these steps.

 

Step 1

Right-click the 4gl project and go to Import:

 

 

Step 2

Choose GIT Projects from GIT in the opened window and press Next:

 

 

Step 3

Choose Existing local repository and press Next:

 

 

Step 4

Choose one of the available repositories and press Next:

 

 

If the necessary repository is not in the list, you can add it.

 

Step 5

Choose the necessary option and press Next:

 

 

You have to choose between three import options:

  • Import existing Eclipse projects allows importing the projects existing in the selected repository by looking and finding .fglproject files (this is the easiest way to import projects and, thus, the most widely used option);

  • Import using the New project wizard starts a New Project wizard so that you can add a project which is not stored in any GIT repository;

  • Import as general project allows generating a new project by name in case when no  .fglproject files are available and none of the New Project wizards suits your needs.

 

Step 6

You can import the whole folder of projects:

 

 

or

 

separate projects (depending on your needs):

 

 

 

Step 7

Now the project is imported from the local GIT repository and added to your workspace:

 

 

 

Import using the New project wizard

 

This wizard is used when no  .fglproject files are available but you want to add the project to your workspace (and then to a GIT repository).

You can launch it at Step 5  by choosing the corresponding option:

 

 

When the New Project wizard starts, it ignores the previously made choices that's why it doesn't matter what folder was selected before.

 

 

 

Step 1

Select the necessary New Project wizard:

 

 

Step 2

Import the project following the wizard steps.

 

E.g.

here you can learn how to import project;

here you can learn how to import files, programs, and libraries;

and here you can learn how to work with CVS.

 

Step 3

After the project was added to your workspace, you can work with it in your usual manner:

 

 

 

Import as general project

 

This wizard is used when no  .fglproject files are available and none of the New Project wizards suits your needs.

You can launch it at Step 5  by choosing the corresponding option:

 

 

After this, the wizard will generate a new project with the name you specify:

 

 

By default, this newly generated project will be created in the working directory of the selected local GIT repository.

 

 

Related articles:

Committing to local GIT repositories

Exporting to local GIT repositories

Pushing to remote repositories