本文介绍了如何在我的NetBeans IDE中设置github存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我对Github非常陌生。我刚刚创建了一个github帐户,它说:步骤1)
全局设置:
设置git
git config --global user.nameMyName
git config --global user.email MyName@gmail.com
下一步:
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原始大师
现有的Git Repo?
cd existing_git_repo
git remote add origin git@github.com:MyName / Java.git
git push -u origin master
步骤2)NetBeans IDE尝试将链接设置为git@github.com:MyName / Java.git
如何设置这个?
后续:(上述过程无效)
$创建项目> 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
$打开netbeans
>自动检测
> origin:git@github.com:me / newproject.git
>按下
>本地分行
>选择主
>按下
>按完成
作品!
解决方案
打开您的终端,输入项目根目录,添加你的遥控器:
我认为它应该检测您的设置,然后检查IDE如何设置您的github存储库。 / p>
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!
解决方案
Open your terminal, enter your project root fold, and add your remote:
I think it should detect your setting, then check how your IDE set your github repository.
这篇关于如何在我的NetBeans IDE中设置github存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!