1、eclipse mars2等较新版本已经集成git,点击window->show view->other里搜索git repository,展示git仓库视图

 

2、window->preference->team->git->configuration->user settings->add entry->分别输入github用户名和邮箱的key和value

 

3、window->preference->team->ignored resources添加例外(如.settings、.project、.classpath等)

 

4、右击项目->team->share project->git->勾选use or create repository in parent folder of project复选框->勾选下方的复选框->create repository->finish

版权声明:本文为naixin007原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/naixin007/p/9918264.html