can EGit be used with existing Eclipse projects and existing Git repos?

安稳与你 提交于 2019-12-01 09:25:58

问题


I have been using Eclipse and Git. Now I want to use EGit. My project has 4 packages. Each package has a Git repo.

When I import Git repos into EGit, there is an instruction in the user docs to import or create .project files. These .project files might be Eclipse related. I already have Eclipse projects so I don't want to create new projects. Can I still use EGit to have GUI access to Git repos without creating new projects or importing projects?

Project creation and importation follows the point in the wizard where a Git repo is selected. It seems strange to select a package specific Git repo and then proceed to import a project that is not package specific. Will I have a problem if my project file is not package specific, but my Git repo is package specific. It would also seem strange to import or create projects 4 times since I have 4 Git repos. I have been working for many months with Eclipse without EGit using only 1 project.

Edit: When I try to import an existing project, no project is found. This might be due to the fact the Git repo folder is not on the same level as the Eclipse project.


回答1:


A bit like "Importing git project into workspace without using egit", you should have your git repo intialized where the .project and .classpath are.

That facilitates the "Import from existing Git Repositories".



来源:https://stackoverflow.com/questions/13107801/can-egit-be-used-with-existing-eclipse-projects-and-existing-git-repos

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!