Eclipse将本地maven项目上传至github

将本地maven项目上传至github

转载:https://blog.****.net/gscurry/article/details/70763426

1.在github网站内新建repository:demo

Eclipse将本地maven项目上传至github

2.在本地新建maven项目(如果已有maven项目则不必创建)

Eclipse将本地maven项目上传至github

Eclipse将本地maven项目上传至github

3.在demo下右键,依次点击team–>Share Project

Eclipse将本地maven项目上传至github

4.在出现的方框点击如图红色箭头所指框框

Eclipse将本地maven项目上传至github

5.创建.git

Eclipse将本地maven项目上传至github 
Eclipse将本地maven项目上传至github 
Eclipse将本地maven项目上传至github

6.项目变为了git项目,如图所示

Eclipse将本地maven项目上传至github

7.此时右键demo–>Team,发现Team出现了熟悉的git操作选项。

Eclipse将本地maven项目上传至github

8.点击commit,将所有的Unstaged Changes拉到Staged Changes里,Commit and Push

Eclipse将本地maven项目上传至github 
Eclipse将本地maven项目上传至github

9.在新出现的框框内,将第一步创建时的uri复制粘贴到框框内,其他的信息就会自动填入,可能你的User与Password没有自动填入。点击next–>next–>Finish

Eclipse将本地maven项目上传至github 
Eclipse将本地maven项目上传至github

10.回到github,刷新当前页面,可以看到刚才新建的maven项目已经上传至github里。

Eclipse将本地maven项目上传至github

好事多磨,熟能生巧~