How to create a Netbeans 7 project from an existin

2019-04-04 04:39发布

I'd imagine there is a 'new project from repo' option somewhere but I can't find it. Is there more to it than this, or am I missing something?

3条回答
我想做一个坏孩纸
2楼-- · 2019-04-04 04:58

Use the Team menu, select "Git" > "Clone..."

Once the repo has been cloned into a local folder, NetBeans will give you the option to open the project.

Trying to create a project and then clone into it fails because the target folder is not completely empty.

查看更多
乱世女痞
3楼-- · 2019-04-04 05:05

Just clone the repo into your (newly created) netbeans project and then refresh (build) it.

查看更多
不美不萌又怎样
4楼-- · 2019-04-04 05:16

Here's what worked for me:

> git clone https://github.com/path/project

Then in NetBeans: File > New Project > choose a project type "...with Existing Sources" > "Next" select "Source Folder" (the folder you cloned into) and press "Finish"

Unfortunately, it seems that your project must already correspond to a project type that NetBeans already supports (eg. Java Application, HTML5/JS Application, etc). If it doesn't you probably won't get this to work.

查看更多
登录 后发表回答