As mentioned in this EGit tutorial, the destination directory you mention when importing (cloning) a Git repo is any directory you want, in which the .git
will be created:
You don’t have to select the workspace itself (at least, you should select the workspace/myproject
subdirectory, in order to not make the all Eclipse workspace a Git repo.
And you can select any other directory outside the workspace: the Eclipse workspace should only contain meta-data about Eclipse projects and settings.
When declaring a new project, you will be able to select the project directory, making that directory the parent for .classpath
and .project
.
Your workspace will list that new project, even though it lives outside the workspace.