Hello. Actually by sabzh: you need to clone the project from the master to yourself and launch it. I do it this way: in the IDE menu panel, I select Group -> Git -> Clone , enter the repository address with login and password, select the folder into which it will be tilted, the master branch and wait a little. A window pops up, the name of which is “Clone Complete”, there are two buttons in the window: create a project and close the window .

  1. When I clicked on the first button, I created the "Java Project with Existing Source Files" and indicated the folder into which I cloned the files from the gita. In this case, the new nbbuild.xml file and the nbdist folder are created , since they already exist under the same names, but without the nb prefix, and the cloned files are not visible at all. There is only a Library folder.
  2. When closing the window and trying to open a project, NetBeans does not see the folder with cloned files as a project and, accordingly, I cannot open them.

I tried first to create a project both empty and normal, and then clone into it from the gita, but the result is the same. By the way, I watched a couple of videos about this and on them, after cloning there was a button to open a project, and not to create, like mine.

Please tell me how you can solve this problem. Thank you in advance.

  • I work in ideas. A new project is written in the bins, they have a different project structure with the idea, you need to keep it - PREDATORik
  • the structure can be any regardless of ide - Stranger in the Q
  • @StrangerintheQ correctly said, the project should not be tied to any of the IDE - Andrew Bystrov
  • ok, incline the project created in idea netbinsom. another thing is when only .java files are commited and not the whole project - PREDATORik

2 answers 2

It was decided: the build folder was not flooded on git, so the project did not open.

    I use netbeans with php, but I think with java it will be about the same.

    • If the netbeans configuration files are stored in the repository, then after cloning a window will appear with the "open project" button.

    • If the netbeans configuration files are NOT stored in the repository, then after cloning you need to click the "create project" button, and then do it as if you are creating an empty project, indicating the directory where the repository was inclined.

    • An empty project means creating configuration files. In the first post it is described that such an action did not fit. - PREDATORik