Eclipse / EGit从本地Git Repo导入? [英] Eclipse/EGit Import From Local Git Repo?
问题描述
我有一个本地仓库,它有一个我检查过的grails项目。现在,我想将这些文件放到eclipse中的新项目中。 (使用EGit)。
我尝试了几种不同的方法,但我所得到的只是一个空的grails项目。我可以在git repo浏览器中看到包含所有源代码的源代码树。
帮助?
我通常这样做:
>- 将现有项目导入到Eclipse中(可能需要执行一些导入现有的Grails项目,具体取决于插件),然后选择项目目录也恰好是Git仓库)
导入项目后,Eclipse仍然不知道Git仓库。
解决此问题:
I can't seem to figure this out. I keep importing, but I get no files from the repo.
I have a local repo that has a grails project that I checked in. Now, I want to get those files out into a new project in eclipse. (Using EGit).
I've tried several different ways, but all I ever get is an empty grails project. I can see the source tree with all the sources in it in the git repo browser.
Help?
I usually do this:
- Import existing projects into Eclipse (could be you have to do some Import existing Grails project, depending on the plugin), and select the project directory (which also happens to be a Git repository)
After your project is imported, Eclipse is still not aware of the Git repository.
To fix this:
- Right-click the project
- Select Team -> Share
- Select Git in the next dialog
- Click Next a time or two, and you're done.
这篇关于Eclipse / EGit从本地Git Repo导入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!