安装EGIT插件.
第一次 提交 到公有仓库(免费的仓库有github.com,git.oschina.net)
右键工程->team->git->share->git ->勾选 use or create repository in parent folder of project ->选中工程->create repository
->填写提交说明->提交到本地仓库->->输入共有仓库地址(ex:https://github.com/github/android.git)->选中分支(默认为master)->提交到远程仓库分支(默认选master).
拉取远程公有仓库的工程.
工程包管理空白处右键->导入->git->uri->输入远程仓库地址->拉取到本地仓库->从本地项目创建/导入工程(.project存在的情况直接导入即可).
同步开发.
提交代码,前先要同步代码;
team ->fetch from Upstream
->pull
提交
->push and commit->填写注释->选择分支(默认为master到master)->提交