Tôi rất mới với Github. Tôi chỉ cần tạo một tài khoản github và nó nói như dưới đây:Làm cách nào để thiết lập kho lưu trữ github trong IDE NetBeans của tôi?
Bước 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
Bước 2) NetBeans IDE cố gắng để thiết lập các liên kết như [email protected]: Myname/Java.git
Bây giờ nó sẽ gây ra lỗi như bạn có thể thấy ở trên. Làm thế nào để tôi thiết lập này?
Theo dõi: (trên quá trình không làm việc)
$ 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!
Hệ điều hành của bạn là gì? – Kjuly
Đó là Fedora 15. – YumYumYum