eclipse提交项目到github
2015-12-31 17:54
561 查看
1.在https://github.com new repository
2.在eclipse中new project 比如:Test项目
3.右击"Test"->Team->share project... ->select a repository type:Git
勾选 Use or create repository in parent folder of project
点击 Create Repository -> Finish
这时候打开在workspace中的Test目录会发现多了一个.git文件夹。
4.右击"Test"->Team->commit 本地提交
5.再右击"Test"->Team->Remote->Push
URI就是github上面指定的地址:
username和password就是github网站的用户名和密码
5.finish
source ref 选择 refs/heads/master destination ref会自动填充,点击 Add Spec勾选Focus update
开始提交。
6.可以刷新网页查看提交的代码了。。。
注:在Eclipse中生public key, 并添加到GitHub Repository中。
在菜单栏依次打开window → preference → general → network connection → SSH2 → Key Management → generate RSA Key... → apply → save private key...
生成 SSH 的 public key在GitHub中通过:edit your profile -> ssh key -> Add SSH Key 添加SSH Key,
2.在eclipse中new project 比如:Test项目
3.右击"Test"->Team->share project... ->select a repository type:Git
勾选 Use or create repository in parent folder of project
点击 Create Repository -> Finish
这时候打开在workspace中的Test目录会发现多了一个.git文件夹。
4.右击"Test"->Team->commit 本地提交
5.再右击"Test"->Team->Remote->Push
URI就是github上面指定的地址:
username和password就是github网站的用户名和密码
5.finish
source ref 选择 refs/heads/master destination ref会自动填充,点击 Add Spec勾选Focus update
开始提交。
6.可以刷新网页查看提交的代码了。。。
注:在Eclipse中生public key, 并添加到GitHub Repository中。
在菜单栏依次打开window → preference → general → network connection → SSH2 → Key Management → generate RSA Key... → apply → save private key...
生成 SSH 的 public key在GitHub中通过:edit your profile -> ssh key -> Add SSH Key 添加SSH Key,
相关文章推荐
- /** * Describe: * User: fanweixiao * Date: ${date} * Time: ${time} */
- MyEclipse 搭建webservice (axis1.4)
- Java中List集合的遍历
- 【Java学习笔记】——验证码
- java中Date与String的相互转化
- java设计模式----备忘录模式
- Struts2 标签库讲解
- struts2常用标签详解
- JVM学习笔记(二)------Java代码编译和执行的整个过程
- springMVC dubbo zookeeper整合
- Java基础-学习笔记(一)
- 从几个sample来学习Java堆,方法区,Java栈和本地方法栈
- Eclipse快速开发快捷键
- QR二维码Java开发笔记
- Caused by: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJE
- dubbo开发(1)--- zookeeper搭建和dubbo管理端安装
- CAS SSO 4.0 增加验证码
- windows7 + iis7 + fastcgi + php5 + netbeans + xdebug 调试 php
- strut2之数据类型转换
- 时间转换报java.lang.NumberFormatException: multiple points问题