1.工程初始化为本地库
工程-右键-Team-share project

1.1create repository


1.2查看本地库

1.3设置本地库范围的用户签名

2.Git图标介绍

3.忽略文件
项目-Team-commit

3.1GitHub官网样例文件
https://github.com/github/gitignore
https://github.com/github/gitignore/blob/master/java.gitignore
3.2编辑本地忽略文件
C:\Users\ThinkPad下新建Java.gitignore 配置文件如下

在~/.gitconfig文件中引入上述文件
[core]
excludesfile = C:/Users/ThinkPad/Java.gitignore
注意:路径一定要正斜杠"/",不是反斜杠""
3.3检测成功

3.3.1排除文件效果

4.提交
4.1.提交本地库
Team--commit(ctrl+#)

4.2.提交远程库
创建远程github库TestGit,拷贝https://github.com/gdbd8341/TestGit.git。
回到eclipse,项目-team-remote-push



4.3.到github查看提交成功

5.克隆
5.1.远程库工程克隆到本地







5.2.最后转换maven 工程
6.eclipse 解决冲突

1.拉取到本地team-pull
2.查看信息合并 team-merge tool
3.提交到本地库team-commit

4.push到远程库(成功)


网友评论