I am very new to Github. I just created one github account and it says as bellow:
Step 1)
Global setup:
Set up git
git config --global user.name "MyName"
git config --global user.email MyName@gmail.com
Next steps:
mkdir Java
cd Java
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:MyName/Java.git
git push -u origin master
Existing Git Repo?
cd existing_git_repo
git remote add origin git@github.com:MyName/Java.git
git push -u origin master
Step 2) NetBeans IDE trying to setup the link as git@github.com:MyName/Java.git
Now it gives error as you can see above. How do i setup this?
Follow up: (above process did not worked)
$ create a project > cd /var/tmp/newproject
$ sudo git remote add origin git@github.com:me/newproject.git
$ ls -a
. .. build build.xml dist .git .gitignore manifest.mf nbproject src
$ Open netbeans
> Automatically it detects
> origin:git@github.com:me/newproject.git
> press next
> local branch
> select master
> press next
> press finish
Works!