Start using Eclipse GIT with an existing project ... project files move

Yesterday I wanted to start using Eclipse eGIT in an existing project, following the instructions at http://www.vogella.com/articles/EGit/article.html

This tutorial assumes that the git repository is outside the workspace, and I followed this suggestion.

After the step "5.5. Using git View for initial commit," I committed my initial commit. Then I continued editing one of my source files that were still open. But when I tried to save my changes, Eclipse complained that the source file was gone.

Then I checked both my workspace and the git folder, and the project files were only in git. This is not mentioned anywhere in the textbook. Is this normal behavior?

Even more surprising: to continue the normal work with my already open files, I copied project subfolder from .git back to the workspace folder. And now everything seems beautiful. My changes are reflected in the workspace folder, as well as in โ€œUnspecified changesโ€ in the โ€œw20โ€ view and in the git folder.

Is this the expected behavior?

+4
source share
1 answer

I found out that files are really moving. I needed to close all open project files and then open them again from the explorer package (which will open files from the git repository).

+4
source

All Articles