proper workflow for Git projects in Netbeans

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

proper workflow for Git projects in Netbeans

Bonnie MacKellar
Hi,
I want to create a Java project in NetBeans and integrate with GitHub. I am not sure how best to do this. Should I create a project in NetBeans first, with a local repository, and then push to a repository in GitHub? Or should I create an empty repository in GitHub, clone, and then add my Java files? I tried the second of these, but it does not seem to work properly - the local repository ends up not connected to the NetBeans project. What is the correct way to proceed?




Reply | Threaded
Open this post in threaded view
|

Re: proper workflow for Git projects in Netbeans

geertjan.wielenga@oracle.com


https://www.youtube.com/watch?v=rs3QSq5hNf4

Gj

On 18-10-2015 0:08, bkmackellar wrote:
> Hi,
> I want to create a Java project in NetBeans and integrate with GitHub. I am not sure how best to do this. Should I create a project in NetBeans first, with a local repository, and then push to a repository in GitHub? Or should I create an empty repository in GitHub, clone, and then add my Java files? I tried the second of these, but it does not seem to work properly - the local repository ends up not connected to the NetBeans project. What is the correct way to proceed?
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

proper workflow for Git projects in Netbeans

Bonnie MacKellar
In reply to this post by Bonnie MacKellar
When I do the same thing but with a Java project instead of a NetBeans module project, I end up with oddly double project folders. For example, if the project is named TestGit in GitHub, NetBeans creates its project in
.../TestGit/TestGit.  If I try to delete the second TestGit level, I get an error message saying that the TestGit folder is not empty. I don't want this doubled folder structure. I cannot find a way around this though.



geertjan wrote:

> https://www.youtube.com/watch?v=rs3QSq5hNf4
>
> Gj
>
> On 18-10-2015 0:08, bkmackellar wrote:
>
> > Hi,
> > I want to create a Java project in NetBeans and integrate with GitHub. I am not sure how best to do this. Should I create a project in NetBeans first, with a local repository, and then push to a repository in GitHub? Or should I create an empty repository in GitHub, clone, and then add my Java files? I tried the second of these, but it does not seem to work properly - the local repository ends up not connected to the NetBeans project. What is the correct way to proceed?
> >
> >
> >
> >
>





Reply | Threaded
Open this post in threaded view
|

Re: proper workflow for Git projects in Netbeans

geertjan.wielenga@oracle.com

Hope it helps: https://www.youtube.com/watch?v=yS_dzR-XbDU

Gj

On 18-10-2015 0:57, bkmackellar wrote:

> When I do the same thing but with a Java project instead of a NetBeans module project, I end up with oddly double project folders. For example, if the project is named TestGit in GitHub, NetBeans creates its project in
> .../TestGit/TestGit.  If I try to delete the second TestGit level, I get an error message saying that the TestGit folder is not empty. I don't want this doubled folder structure. I cannot find a way around this though.
>
>
>
> geertjan wrote:
>> https://www.youtube.com/watch?v=rs3QSq5hNf4
>>
>> Gj
>>
>> On 18-10-2015 0:08, bkmackellar wrote:
>>
>>> Hi,
>>> I want to create a Java project in NetBeans and integrate with GitHub. I am not sure how best to do this. Should I create a project in NetBeans first, with a local repository, and then push to a repository in GitHub? Or should I create an empty repository in GitHub, clone, and then add my Java files? I tried the second of these, but it does not seem to work properly - the local repository ends up not connected to the NetBeans project. What is the correct way to proceed?
>>>
>>>
>>>
>>>
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

proper workflow for Git projects in Netbeans

Bonnie MacKellar
In reply to this post by Bonnie MacKellar
Thanks, this works for me. One downside is that all of the NetBeans project info is now in Git, which may not always be the best thing. But it works


geertjan wrote:

> Hope it helps: https://www.youtube.com/watch?v=yS_dzR-XbDU
>
> Gj
>
> On 18-10-2015 0:57, bkmackellar wrote:
>
> > When I do the same thing but with a Java project instead of a NetBeans module project, I end up with oddly double project folders. For example, if the project is named TestGit in GitHub, NetBeans creates its project in
> > .../TestGit/TestGit.  If I try to delete the second TestGit level, I get an error message saying that the TestGit folder is not empty. I don't want this doubled folder structure. I cannot find a way around this though.
> >
> >
> >
> > geertjan wrote:
> >
> > > https://www.youtube.com/watch?v=rs3QSq5hNf4
> > >
> > > Gj
> > >
> > > On 18-10-2015 0:08, bkmackellar wrote:
> > >
> > >
> > > > Hi,
> > > > I want to create a Java project in NetBeans and integrate with GitHub. I am not sure how best to do this. Should I create a project in NetBeans first, with a local repository, and then push to a repository in GitHub? Or should I create an empty repository in GitHub, clone, and then add my Java files? I tried the second of these, but it does not seem to work properly - the local repository ends up not connected to the NetBeans project. What is the correct way to proceed?
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
> >
> >
>





Reply | Threaded
Open this post in threaded view
|

Re: proper workflow for Git projects in Netbeans

geertjan.wielenga@oracle.com

Then use Maven instead. All the project info in a Maven project is in
its POM file.

Gj

On 18-10-2015 14:50, bkmackellar wrote:

> Thanks, this works for me. One downside is that all of the NetBeans project info is now in Git, which may not always be the best thing. But it works
>
>
> geertjan wrote:
>> Hope it helps: https://www.youtube.com/watch?v=yS_dzR-XbDU
>>
>> Gj
>>
>> On 18-10-2015 0:57, bkmackellar wrote:
>>
>>> When I do the same thing but with a Java project instead of a NetBeans module project, I end up with oddly double project folders. For example, if the project is named TestGit in GitHub, NetBeans creates its project in
>>> .../TestGit/TestGit.  If I try to delete the second TestGit level, I get an error message saying that the TestGit folder is not empty. I don't want this doubled folder structure. I cannot find a way around this though.
>>>
>>>
>>>
>>> geertjan wrote:
>>>
>>>> https://www.youtube.com/watch?v=rs3QSq5hNf4
>>>>
>>>> Gj
>>>>
>>>> On 18-10-2015 0:08, bkmackellar wrote:
>>>>
>>>>
>>>>> Hi,
>>>>> I want to create a Java project in NetBeans and integrate with GitHub. I am not sure how best to do this. Should I create a project in NetBeans first, with a local repository, and then push to a repository in GitHub? Or should I create an empty repository in GitHub, clone, and then add my Java files? I tried the second of these, but it does not seem to work properly - the local repository ends up not connected to the NetBeans project. What is the correct way to proceed?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>
>>>
>>>
>
>
>
>