eclipse+github的上传和下载
2017-09-28 本文已影响6人
测试_机器猫
1、运行eclipse进行安装github插件
在菜单栏依次打开eclipse→help→install new software→add,Name栏中输入github,location栏中输入http://download.eclipse.org/egit/updates/ ,点击ok进行下载。下载完成后会提示重启eclipse;如果已经有了就不需要了
2、在Eclipse生成key,并添加到github上面,并把该生成的key添加到github上面


3、右键选择项目,选择Team-Share Project,将一个git导入你的工程,操作如图所示


4、登录github创建新项目(项目名称要和你提交的项目名称一致)

5、提交你的项目到github,右键点击你要提交的程序,选择team-commit,如果出现如图所示的问题

备注问题解决:去掉如图所示的选择框

接着再右键点击你要提交的程序,选择team-commit,如图所示

6、提交完成后,去github查看是否提交成功,如图所示

7、从github下载项目到eclipse,为了测试,我们把刚才的项目从eclipse中删除,在右侧的空白处右键点击选择Import

完成后,eclipse就会出现该项目