Stanislav Dušek
Stanislav Dušek

Reputation: 93

Eclipse: impossible to load from Git repository

I am trying to use Eclipse to connect to GIT repository.

I go to File -> Import -> Git -> Projects from Git -> Clone URI...

There I fill everything what is needed. And on the next tab I set the master branch. I pick the directory, which should be the Local Destination (i.e. C:\Dev\Eclipse_workspace\Automation). The folder Automation doesn't exist.

On the next screen, I choose "Import as general project".

It tells me "Project Automation already exists".

So I remove the folder.

But then it tells me "Directory C:\Dev\Eclipse_workspace\Automation does not exist". enter image description here

Unfortunately, I have to use Eclipse on dedicated computer for this current project and don't have the option to use other IDE.

Can you give me any advice of whether it's a bug, or just some misunderstanding?

Thank you.

Upvotes: 0

Views: 99

Answers (1)

howlger
howlger

Reputation: 34137

It doesn't work this way because importing here only works if the repository is outside the workspace.

Either select a location outside the workspace or do the following:

  1. Clone the project into the workspace as you did it, but without importing:
    In Quick Access (Ctrl+3) type Clone a Git Repository to open the Clone dialog
  2. Create a new General Project named Automation: File > New > Other...: General > Project

Upvotes: 1

Related Questions