问题描述
我已经使用终端从GitHub分发了一个项目,并将其导入到Eclipse中。
I've forked and cloned a project to the local machine from GitHub using the terminal and am trying to import it into Eclipse.
问题是从GitHub没有一个 .project
文件,所以当我从Git导入 - >项目时,我只能作为一般项目导入。如何在不执行git init的情况下将项目导入Eclipse?大部分的解决方案,当我们从Git克隆时,已经有了 .project
。
The problem is the clone from GitHub doesn't have a .project
file, so when I go import -> projects from Git, I can only import as a general project. How can I import the project to Eclipse without doing git init? Most of the solutions I saw have .project
already there when they cloned it from Git.
推荐答案
创建一个新的java项目,选择使用默认位置,然后点击浏览按钮浏览git项目路径。它适用于我我刚刚通过这种简单的方法将一个Git,netbeans项目导入到Eclipse中。
Create a new java project, Untick "Use default location" and browse the git project path by clicking browse button. It works for me. I have just imported a Git, netbeans project into Eclipse through this simple method.
这篇关于将没有.project文件的现有Git项目导入到Eclipse中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!