• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Github Repository and NetBeans 8 IDE

 
Greenhorn
Posts: 27
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everyone,

I use NetBeans 8 and I would like to push my project to github. Unfortunately, all the tutorials I have seen so far are for versions of the IDE less than 8. For example, I can't find where to initialize a git repository.

Does anyone know any detailed steps(what to do and the significance of each step) on how to push a project to github using Netbeans 8?

Thanks for your time.
 
author & internet detective
Posts: 42103
933
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The NetBeans documentation implies it is in the same place in 7.4 and 8.0. Does Team > Git > Clone not exist anymore?

Regardless, I would recommend actually creating the repo on github and then just cloning it NetBeans and pushing from there.
 
Daisy Smith
Greenhorn
Posts: 27
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Jeanne,

Thanks for the reply. In that documentation, it does say that but I tried follow the steps to initialize the repository and in Netbeans 8, you don't have the Versioning and Initialise Git Repository options. Also I followed the video from webpage and I couldn't initialize the repo.

I would not like to clone a repo from github. I would like to push one from my local repository to the remote one.

 
Jeanne Boyarsky
author & internet detective
Posts: 42103
933
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cloning an empty repository and pushing to it is equivalent. The initialize the repository only happens once; it isn't a common operation. If you do have the clone option in NetBeans, I recommend going with that.
 
Daisy Smith
Greenhorn
Posts: 27
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jeanne,

I did what you suggested but when it came time to push, I got an error Git Pushed Failed window which says "remote repository contains commits unmerged into the local branch. Open output stream for more information." When I open the output stream, this is what I get:

==[IDE]== 03-Aug-2014 14:03:49 Pushing - guestu
git branch
git remote -v
setting up remote: origin
git submodule status
git push https://github.com/daisyab/annotationprocessor.git refs/heads/master:refs/heads/master
Remote Repository Updates
Branch Update : master
Old Id : 24f2e598a842d13104bd461b2b63d58728cb07aa
New Id : 308f4c9813a0cdd36cf66c77c362a6c3608248ba
Result : REJECTED_NONFASTFORWARD
Local Repository Updates
Branch Update : origin/master
Old Id : 438f4ee949b723df988a9a7d6e41223b36769132
New Id : 308f4c9813a0cdd36cf66c77c362a6c3608248ba
Result : NOT_ATTEMPTED
==[IDE]== 03-Aug-2014 14:07:24 Pushing - guestu finished

What is the problem?
 
Daisy Smith
Greenhorn
Posts: 27
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jeanne,

Thanks for all your help. I started the process afresh and I followed this tutorial while using NetBeans terminal to pass in the commands. It works now. Thanks again.
 
Jeanne Boyarsky
author & internet detective
Posts: 42103
933
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm glad you got it working. Thanks for posting a link to what ended up helping.
 
I think I'll just lie down here for a second. And ponder this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic