step 1:

在eclipse中创建一个普通web项目,如图

使用eclipse操作github仓库



step 2:

在github上创建一个仓库,与eclipse项目同名


使用eclipse操作github仓库


step 3

完成后,回到eclipse,在这个项目上点击右键,选择在Team-》share project-》git,然后到这个界面,点击此处,表明在eclipse的workspace中建立本地git仓库

使用eclipse操作github仓库

step 4

来到这个界面,勾选这两个地方,finish

使用eclipse操作github仓库

step 5

然后再次打开Team,会出现一堆选项,其中的commit表示提交到git网络仓库,选择它

使用eclipse操作github仓库

step 6

选好后,进行提交的备注以及要提交的文件,commit and push,出现这个界面

使用eclipse操作github仓库

step 7

这时去github仓库,复制仓库的连接到url中

使用eclipse操作github仓库

就会变成这样,账号和密码填上去就好了

使用eclipse操作github仓库

step 8

接着就可以提交了

使用eclipse操作github仓库


step error

当然,如果提交时出现这个问题,说明本地库需要更新了,点击Team-》pull更新即可,再次尝试,成功

使用eclipse操作github仓库

相关文章: