在远程建立git项目 new-建立项目- 取得远程项目的网址
本地项目-远程项目关联 git remote add origin 远程项目的https/ssh的唯一标示符
在当前工作目录 右键-git bash
git add. git commit -m "这里写提交信息" git push origin master目前的eclipse基本都支持git,如果不支持 则到eclplise marktplace 搜git安装
配置 a. team-git-configuration -邮箱 用户名 b. general -network -ssh2选中 生成的ssh目录第一次发布 share project 加入暂存区add to index 提交到本地分支commit 将项目推送到远程 右键-team -remote -push提交 team-add to index team -commit team -pushcommit and push 或commit按钮的区别: commit按钮:不能单独的Push某一个文件,只能Push整个项目 commit and push:可以 单独Push某一个文件
第一次下载 import -clone -输入 https/ssh的唯一标示符
更新 team - remote -pull
发现冲突: 进入同步视图 右键——team - synchronized… 解决: 添加到本地暂存区 add to index 提交到本地分支 commit 更新服务端的分支内容 到本地分支 pull 修改冲突:直接修改 或者 merge tool add to index commit push