1、本地创建一个项目

2、创建本地代码库并提交
team→Share project


勾选Use or create repository in parent of project,点击Create Repository

commit


Add to Index

Add to Index 后效果

输入Commit Message

3、GitHub创建Repository

注意:不要勾选 Initialize this repository with a README

注意保存相应的git地址,此处为https://github.com/panli1988/test.git
4、在eclipse中push到刚刚创建的Repository


URI为刚刚保存的git地址
Source ref选择master,点击Add Spec

点击Next

Finish
网友评论