我對Github很新。我剛剛創建一個帳戶GitHub的和它說波紋管:如何在我的NetBeans IDE中設置github存儲庫?
步驟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
步驟2)NetBeans IDE中試圖建立的聯繫,[email protected]:MYNAME/Java.git
現在它給錯誤,你可以在上面看到。我如何設置?
跟進:(上述過程中沒有工作)
$ 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!
什麼是您的操作系統? – Kjuly
這是Fedora 15. – YumYumYum