简体   繁体   English

从本地Git仓库导入Eclipse / EGit?

[英]Eclipse/EGit Import From Local Git Repo?

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. 我有一个本地仓库,其中有一个已签入的grails项目。现在,我想将这些文件导出到eclipse中的新项目中。 (Using EGit). (使用EGit)。

I've tried several different ways, but all I ever get is an empty grails project. 我尝试了几种不同的方法,但是我得到的只是一个空的grails项目。 I can see the source tree with all the sources in it in the git repo browser. 我可以在git repo浏览器中看到包含所有源代码的源代码树。

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) 将现有项目导入Eclipse(可能需要做一些导入现有Grails项目,具体取决于插件),然后选择项目目录(也恰好是Git存储库)

After your project is imported, Eclipse is still not aware of the Git repository . 导入项目后,Eclipse仍然不知道Git存储库

To fix this: 要解决此问题:

  • Right-click the project 右键单击项目
  • Select Team -> Share 选择团队->分享
  • Select Git in the next dialog 在下一个对话框中选择Git
  • Click Next a time or two, and you're done. 一到两次单击“下一步”,就完成了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM