博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
eclipse提交项目到github
阅读量:6971 次
发布时间:2019-06-27

本文共 760 字,大约阅读时间需要 2 分钟。

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,

转载地址:http://ijosl.baihongyu.com/

你可能感兴趣的文章
Tinkoff Challenge - Final Round (ABC)
查看>>
CentOS环境下通过YUM安装软件,搭建lnmp环境
查看>>
使用ODP.NET一次执行多句SQL语句
查看>>
python 10.19作业
查看>>
groupby以后取每组前n行
查看>>
第二十一课:js属性操作的兼容性问题
查看>>
【学习Android NDK开发】Primitive Types Map(基本类型映射)
查看>>
选择问题(第k小元素)(分治法)
查看>>
POJ3438 ZOJ2886 UVALive3822 Look and Say【数列】
查看>>
深度残差网络
查看>>
iOS7默认状态栏文字颜色为黑色,项目需要修改为白色。
查看>>
c链表
查看>>
(七)jQuery中的DOM操作
查看>>
js获取页面传过来的参数
查看>>
第7章 数组实验
查看>>
cacti快速安装
查看>>
firefox下img元素和空div以及选中div中文字拖拽效果处理
查看>>
vue中eventbus 多次触发的问题
查看>>
两场CF
查看>>
Mahalanobis Distance(马氏距离)
查看>>