前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >eclipse提交项目到github

eclipse提交项目到github

作者头像
shirayner
发布2018-08-10 11:19:38
3220
发布2018-08-10 11:19:38
举报
文章被收录于专栏:Java成神之路Java成神之路

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,

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2016-05-30 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档