Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Possible to Connect Netbeans with GitHub?

I know the Git integration is Netbeans 7.0 is new and under development, but has anyone had success on pushing/pulling to GitHub?

When I click Git->Push the remote repository url shows up correctly under Step 1. Configured Repository.

But is just stays stuck on " Connecting to repository". It also pops up a box saying "Specify Git repository location" with the exact same url , clicking OK does nothing.

If instead I choose "Specify Git Repository Location" I eventually get an error, "Cannot connect to the remote repository at [email protected]:username/..."

ps. I am aware of the other similar stack questions but they are confusing, one person mentions that he was able to do this, while others mention is not yet possible to use a remote Git connection.

like image 617
Wyck Avatar asked Dec 17 '22 09:12

Wyck


2 Answers

I have had the same issue. And now it works fine for me. I have done this:

1 With CLI ( Terminal for me) Define your remote repo :

cd yourlocalfolder

git remote add origin [email protected]:username/repo.git

2 Open Netbeans (7.1 for me) Go to Team > Git > Remote > Push

3 You should see your remote repo preselected

4 in Private /public key browse to your rsa file usr/username/ssh/id_rsa

5 Click on Next

6 Done

like image 181
Marie_d Avatar answered Jan 02 '23 20:01

Marie_d


You need check 'Specify Git Repository Location:' 'Repository URL:' https://github.com/<your username>/<yourGitFile>.git 'User:' <your username>

like image 45
Dariusz Avatar answered Jan 02 '23 19:01

Dariusz