eclipse中配置git
一般高版本的eclipse中都有git插件,诺是没有请安装。此处略过。。。。
(1)配置:
配置用户名,email:Windws……Preferences…..Team……Git……Configuration……Add Entry
检查SSH key
2.在eclipse中git的配置和使用
(1) 配置用户名,email:Windws……Preferences…..Team……Git……Configuration……Add Entry

(2) 检查SSH key

(3) 新建一个web项目,此时它只是一个普通的javaWeb项目,未纳入git管理

(4) 变为Git项目

(5) 变为Git项目后说明情况

(6) Eclipse里面的项目提交到本地库

(7) 接下来就是和远程仓库进行操作:
① Github上新建一个同名的空仓库

② 本地可以push到Remote

③ 本地可以Push到Remote,Eclipse里面的配置

④ Push

⑤ OK, 如果此步顺利,修改本地文件先push给远程github试试再更新pull试试

⑥ Github服务器上面更新了,pull到本地

⑦ 解决Eclipsei里面Pull操作的问题---1

⑧ 解决Eclipsei里面Pull操作的问题---2

说明:上面红色不变,蓝色变为自己项目的路径
[branch "master"]
remote = origin
merge = refs/heads/master
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
push = refs/heads/master:refs/heads/master
⑨ 解决Eclipsei里面Pull操作的问题---3

⑩ 实际开发问题,我总不能肉眼随时去看看服务器版本是不是比我新或者比较旧,本地和服务器端不同步了如何保持一致性? 实际开发问题,和远程服务器比对,看看local和remote的情况
