提交Eclipse代码到Github
2016-06-01 00:48
387 查看
eclipse提交项目到github
1.在https://github.com new repository
2.在eclipse中new project 比如:Test项目
3.右击"Test"->Team->share project... ->select a repository type:Git
勾选 Use or createrepository in parent folder of project
点击 CreateRepository -> 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,
----------------------------------------------------EOF---------------------------------------------------------------------------------------------------------------------
1.在https://github.com new repository
2.在eclipse中new project 比如:Test项目
3.右击"Test"->Team->share project... ->select a repository type:Git
勾选 Use or createrepository in parent folder of project
点击 CreateRepository -> 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,
----------------------------------------------------EOF---------------------------------------------------------------------------------------------------------------------
相关文章推荐
- 查看github pages文档的方式
- 使用BAE的基于Web.py的简单博客程序
- MyEclipse Web Project转Eclipse Dynamic Web Project
- Windows Clang开发环境备忘
- 傻瓜式用Eclipse连接MySQL数据库
- 两分钟学会如何在github托管代码
- Eclipse引入jquery报错如何解决
- 让Flex Builder 3.0与Eclipse3.4整合起来
- Eclipse配置Javascript开发环境图文教程
- 使用zend studio for eclipse不能激活代码提示功能的解决办法
- 图解Eclipse j2ee开发环境的搭建过程
- 两种Eclipse部署动态web项目方法
- ext for eclipse插件安装方法
- 解决Fedora14下eclipse进行android开发,ibus提示没有输入窗口的方法详解
- eclipse导入jquery包后报错的解决方法
- Eclipse 格式化代码时不换行与自动换行的实现方法
- Eclipse下jQuery文件报错出现错误提示红叉
- eclipse如何忽略js文件报错(附图)
- eclipse3.2.2 + MyEclipse5.5 + Tomcat5.5.27 配置数据库连接池