Restoring Eclipse workspace, preserving Git status

There are a lot of publications in the Internet on this subject like:

http://letsgetdugg.com/2009/04/19/recovering-a-corrupt-eclipse-workspace/

http://stackoverflow.com/questions/7847359/eclipse-wont-start-but-no-error-is-shown

all of them does the job to some xtent, but they do not preserver the Git status of the project.

here I show a solution that will preserve this status:

0.

exit from the Eclipse

1.

make a copy of the

.metadata/.plugins

subfolder of the workspace folder

2.

remove the

.metadata\.plugins\org.eclipse.core.resources\.projects\\.indexes

3.

start the eclipse

( this will create new .metadata\.plugins\org.eclipse.core.resources\.projects\\.indexes

folder)

4.

exit from Eclipse

5.

copy the content of .indexes folder from the original to the newly created .indexes folder

6.

start Eclipse – the workspace will open niormaly and the project willbe rebuit.
The Git project status will be preserved

This entry was posted in android. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>