Eclipse / EGit从本地Git Repo导入? [英] Eclipse/EGit Import From Local Git Repo?

查看:194
本文介绍了Eclipse / EGit从本地Git Repo导入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎无法弄清楚这一点。我继续导入,但没有从回购文件中获得文件。

我有一个本地仓库,它有一个我检查过的grails项目。现在,我想将这些文件放到eclipse中的新项目中。 (使用EGit)。



我尝试了几种不同的方法,但我所得到的只是一个空的grails项目。我可以在git repo浏览器中看到包含所有源代码的源代码树。



帮助?

解决方案

我通常这样做:

>


  • 将现有项目导入到Eclipse中(可能需要执行一些导入现有的Grails项目,具体取决于插件),然后选择项目目录也恰好是Git仓库)



导入项目后,Eclipse仍然不知道Git仓库



解决此问题:


  • 右键单击项目

  • 选择团队 - >共享

  • 在下一个对话框中选择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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆