• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

NetBeans and Git

 
Bartender
Posts: 1810
28
jQuery Netbeans IDE Eclipse IDE Firefox Browser MySQL Database Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As part of my job search, I am trying to get some example of my work posted on GitHub. I'm struggling with getting NetBeans to connect to my remote repositories. Since I'm on Windows I don't have the git command line. I installed a Git toolbar for NetBeans but it seems useless (all icons are grayed out). So I downloaded the Git desktop application but can't figure out how to configure it.

Maybe I just need to take a break and come back to this, but any suggestions are welcome.
 
Sheriff
Posts: 67754
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If git is going to be part of your resume skill set, you need to be conversant with the command line. No one is going to be impressed with using it via an IDE.

I'd suggest installing cygwin to get a command line on Windows.

That said, I don't use Netbeans so I can't help with that aspect.
 
J. Kevin Robbins
Bartender
Posts: 1810
28
jQuery Netbeans IDE Eclipse IDE Firefox Browser MySQL Database Chrome Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:If git is going to be part of your resume skill set, you need to be conversant with the command line. No one is going to be impressed with using it via an IDE.


I'm just using Github as a place to display some code examples. I'm more comfortable with SVN on a local server.

But, good point; I do need to learn it. And you are right, it's best to learn the command line. So, I've managed to install the Git Bash shell and command line utilities, so I'll get this figured out.
 
J. Kevin Robbins
Bartender
Posts: 1810
28
jQuery Netbeans IDE Eclipse IDE Firefox Browser MySQL Database Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This isn't going well

User@Desktop MINGW64 /month-year-picker (master)
$ git remote
origin

User@Desktop MINGW64 /month-year-picker (master)
$ git pull
Already up-to-date.

User@Desktop MINGW64 /month-year-picker (master)
$ git push
Everything up-to-date

And yet nothing appears in the repository on github. I did the hello world tutorial but it wasn't very helpful. What am I doing wrong?

I'm going to go look for a good git tutorial. Suggestions?
 
Bear Bibeault
Sheriff
Posts: 67754
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I learned a lot about git using the Atlassian tutorial. It looks like it's been rewritten so can't vouch for it explicitly.
 
J. Kevin Robbins
Bartender
Posts: 1810
28
jQuery Netbeans IDE Eclipse IDE Firefox Browser MySQL Database Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm working through that tutorial right now.  

I'm trying to jump into things without taking the time to read documentation and learn properly. I need to slow down. I thought I could just create a github repository and upload my project and be done. It's not quite that simple.

I've also set Netbeans aside. I used that at my last job because I had too, but other employers are going to be looking for Eclipse skills, so I've installed Neon and will be using that for my projects.
 
J. Kevin Robbins
Bartender
Posts: 1810
28
jQuery Netbeans IDE Eclipse IDE Firefox Browser MySQL Database Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Holy crap I think I got it working. But I pushed the "WebContent" folder. Is that the way it's usually done?

My project is here.

[edit]I just looked at the jQuery-ui project and I see that this is not the way it's done. I need to push the contents of WebContent, not the folder itself. Need to take another look at this and see if I can fix it without recreating the repository.
 
J. Kevin Robbins
Bartender
Posts: 1810
28
jQuery Netbeans IDE Eclipse IDE Firefox Browser MySQL Database Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is frustrating. I've spent the last 2 days deleting the repositories, recreating the project, everything I can think of, but I still end up with the WebContent folder pushed to Github instead of the contents of WebContent.

This last time I used

cd \WebContent
git add .

How do I stop it from pushing the top level directory?
reply
    Bookmark Topic Watch Topic
  • New Topic