giteclipse

How make Eclipse/EGit recognize existing repository information after update?


After upgrading Eclipse from Helios to Indigo with EGit plugin 1.0.0, all my projects seem to have lost their metadata about their git repositories, respectively.

In Helios, every Eclipse project was a git repository on its own. When updating to Indigo, i hoped i could continue using the workspace from Helios. After the update, all projects are still present in the workspace; and in each project directory, there's still the .git subdirectory, but Eclipse seems to treat each project as if it wasn't a git repository already.

So, there's still all git metadata in the project folders, but eclipse doesn't recognize them. Is there another way to "reactivate" the git functionality?


Solution

  • Thanks to Jeremy, i found how to reactivate the repos myself. Basically, two steps were required:

    1. Add the (already existing) local repository to EGit's Git Repositories view;
    2. "Share" each of the projects again using "use or create repository".

    The second step won't work if the repo isn't available in the repository view. So, after an eclipse upgrade, do the following:

    Add the (already existing) local repository to EGit's Git Repositories view

    "Share" each of the projects again using "use or create repository"

    The wizard suggests the local git repository that's located in the current project, so just hit Finish.