首页 > 系统服务 > 详细

GitHub使用教程for Eclipse

时间:2014-10-18 16:37:46      阅读:365      评论:0      收藏:0      [点我收藏+]

1、下载egit插件http://www.eclipse.org/egit/

http://www.eclipse.org/egit/download/

Installing the Latest Release: 3.5.1.201410131835-r

To install via one of the update site URLs listed below, copy and paste it into the “Help > Install new software” dialog.

EGit can be installed in the following ways:

 

 

2、在Eclipse中生public key, 并添加到GitHub Repository中。

在菜单栏依次打开window → preference → general → network connection → SSH2 → Key Management → generate RSA Key... → apply → save private key...

bubuko.com,布布扣

生成 SSH 的 public key在GitHub中通过:edit your profile -> ssh key -> Add SSH Key 添加SSH Key, 把上面生成的 public key 拷贝到这里,保存。

bubuko.com,布布扣

3、导入现有工程
打开一个工程,在工程名上右键,点击team→share project,将你的工程另外导入到一个git文件夹。

bubuko.com,布布扣

bubuko.com,布布扣

bubuko.com,布布扣

4、提交
在项目上点右键–>team–>commit。commit是commit到本机的git库,而push才是同步到github。

bubuko.com,布布扣

在弹出窗口输入你的GitHub 用户名和邮箱

bubuko.com,布布扣

提交文件到本地,并推送到服务器

bubuko.com,布布扣

 

然后需要输入你GitHub上项目的仓库地址,没有的话需要新建项目,步骤如下:

bubuko.com,布布扣

bubuko.com,布布扣

输入上面的URL地址,以及你的用户名和密码

bubuko.com,布布扣

bubuko.com,布布扣

然后等待Eclipse帮你把项目提交就行了

bubuko.com,布布扣

 

 

GitHub使用教程for Eclipse

原文:http://www.cnblogs.com/lkzf/p/4033189.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!