Pascal Wagner
Pascal Wagner

Reputation: 207

How to push to Github using Netbeans? (Mac)

I've created a repository on my GitHub. enter image description here

And I'm looking at these options and I have no idea how to push my current code to the Github Repository. enter image description here

When I click on clone, I move it to this folder... enter image description here

But then get stuck here... enter image description here

When I click the initialize option and I route to the dropbox folder... I get this error... enter image description here

I have the GitHub Mac application setup... enter image description here

Isn't there just an easy button I can push to commit all the code I have in Netbeans to GitHub (without using terminal)?

Upvotes: 1

Views: 1776

Answers (1)

VonC
VonC

Reputation: 1325437

You can do it manually, through the command line:

cd /path/to/your/repo
git remote add origin [email protected]:username/repo.git

Then relaunch your NetBeans, and you should be able to push.

You can also click on "Specify Git Repository Location:", and enter your GitHub repo url there.

If it is an https one, it will prompt you for your GitHub username and password.

Upvotes: 1

Related Questions