Issue
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 [email protected]
Next steps:
mkdir Java
cd Java
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin [email protected]:MyName/Java.git
git push -u origin master
Existing Git Repo?
cd existing_git_repo
git remote add origin [email protected]:MyName/Java.git
git push -u origin master
Step 2) NetBeans IDE trying to setup the link as [email protected]: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 [email protected]:me/newproject.git
$ ls -a
. .. build build.xml dist .git .gitignore manifest.mf nbproject src
$ Open netbeans
> Automatically it detects
> origin:[email protected]:me/newproject.git
> press next
> local branch
> select master
> press next
> press finish
Works!
Solution
Open your terminal, enter your project root fold, and add your remote:
$ cd path/to/your/projcet
$ git remote add origin [email protected]:me/java.git
I think it should detect your setting, then check how your IDE set your github repository.
Answered By - Kjuly
Answer Checked By - Willingham (JavaFixing Volunteer)