GIT repositories: Adding an existing local repository

 

GIT repositories created on your file system can be added to the GIT perspective view manually, i.e. without cloning.

It might be useful if you move to a new Eclipse workspace and want to use your previous repositories.

 

You can add only GIT repositories created from other workspaces.

All the GIT repositories created from the current workspace are added to the initial list automatically.

 

 

To add an existing GIT repository to the GIT repository view, follow these steps.

 

Step 1

Open the GIT perspective as described here.

 

 

Step 2

Press the Add an existing local GIT repository button of the GIT repository toolbar:

 

 

or

 

Press the Add... button in the Select a GIT repository dialog of the Import projects from GIT wizard:

 

 

Step 3

Select the necessary directory by direct typing or browsing:

 

 

Step 4

If browsing, find the necessary folder and press Ok:

 

 

Step 5

Choose (and check) one, several, or all available repositories:

 

 

Step 6

Now the repository is added to your GIT perspective view:

 

 

 

 

Related articles:

GIT Repositories view

Creating Local Repositories

Importing from the local repository