title: Connect existing Eclipse project to existing Git repository
body: <p>I have an Eclipse workspace in <code>~/EclipseWorkspaces/Sabia</code> with a number of projects under Ubuntu 15.10. The source code for these projects resides in a Git repository at <code>~/GitRepositories/Sabia</code>.</p>
  
  <p>I can find no way to tell Eclipse in the Pydev Package Explorer that the projects use the Git Repository. If I try to use <em>Team->Share</em>, the system rejects the Git repository because a directory for each project exists in the repository and Eclipse is trying to move the project to the repository which already has a project directory.</p>
  
  <p>I tried <a href="https://stackoverflow.com/questions/35425286/connect-existing-eclipse-project-to-existing-git-repository/35427762#35427762">the suggestion by Michal Grzejszczak</a> but unfortunately it does not work because the Git Repository does not contain complete projects, only the source trees for the projects. The Eclipse metadata is in <code>/EclipseWorkspaces</code>, not in the Git Repository so <code>import projects</code> on the Git Repository perspective does not work.</p>
  
  <p>In addition when I tried to delete the projects I got the following error message:</p>
  
  <blockquote>
    <p>AppFrame (<em>One of my projects</em>) contains resources that are not in sync with <code>/home/jonathan/Dropbox/EclipseWorkspaces/Sabia/AppFrame</code>. Press 'Continue' to force delete`</p>
  </blockquote>
  
  <p>for half of my projects.</p>
  
  <p>Unfortunately the message gives no more information and I have no idea what kind of problem might actually exist. I am not prepared to delete any flawed projects until I have corrected whatever was wrong.</p>
  
  <p>How can I tell the Eclipse Pydev Package Explorer where the Git repository resides?</p>