• 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
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Netbeans + GitHub Anyone?

 
Ranch Hand
Posts: 77
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've spent now over 1 day trying to connect to GitHub using Netbeans 12.5. Initially, I tried to use username + password and that didn't work, so now I've installed Git for Windows and used it to make an SSH key which I copied to GitHub as per instructions. I then tested the SSH connection with Bash and it was successful, so I know the key is correct. However, Netbeans is still giving me the same error as it did when I tried to connect with a UserName and Password: 'Incorrect credentials for repository at github.com:antonio2654/test001.git'

Can someone show me the correct way to authenticate in Netbeans?
 
Marshal
Posts: 8611
623
Mac OS X VI Editor BSD Java
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure what exact procedure you are following, but I normally have (regardless of IDE or if you have it at all) a git installed (command line tool for git).

Then again, I personally never pull an initial repository via IDE, I simply navigate to directory where I want to clone a repository to, and do:

git clone <repository_path>

i.e. (if using pwd-protected ssh key; with an https url would be an url...)

git clone git@github.com:liutaurasvilda/conways-gol.git

And then, if I'm being asked to, I enter the password, but that happened on my system for the very first time (as I presume git saved pwd to its internals). And then, I open cloned project with an IDE (any).


So, having said all that - can you try to clone it with git, without using NetBeans, as NetBeans really should just wrap those git commands in order to do something similar under the hood anyway. That way you'd potentially narrow the area where the problem is.
 
Antonio Moretti
Ranch Hand
Posts: 77
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The command line tools work just fine. I was able to push to GitHub, and everything looked fine. I then made a small alteration to the source code, and attempted to publish (push) with the IDE, but it threw the same error. It seems the problem is with the remote tools in the IDE, as the tools for local operations work.
 
Bartender
Posts: 2264
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe, you may find this tutorial using Git in NetBean helpful :
http://netbeans.apache.org/kb/docs/ide/git.html
 
Antonio Moretti
Ranch Hand
Posts: 77
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Himai Minh wrote:Maybe, you may find this tutorial using Git in NetBean helpful :
http://netbeans.apache.org/kb/docs/ide/git.html



Yes, that's all I was able to find. Unfortunately it doesn't address the problem. I have done everything I can think of to make it work but  Netbeans still can't connect to Remote using the GUI. I've given up now. I just use ordinary git commands for remote stuff.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just had the same problem so I have found your question. I cauld fix the problem by simply change the user name to "git" the netbeans gui.
 
Marshal
Posts: 77152
370
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OR: welcome to the Ranch
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic