楔子
eclipse Git 忽略文件
GitHub 样例
https://github.com/github/gitignore
文件配置
以meavn java为例。
在 C:\Users\{username}目录下添加文件 Java.gitignore
内容除了GitHub样例还可以添加如下内容(以下内容是eclipse对工程的管理文件)
.classpath
.project
.settings
target
logs
log
rebel.xml
在C:\Users{username}.gitconfig 引用上述文件
[core]
excludesfile = C:/Users/{username}/Java.gitignore
后记
分享一个学习视频 (来源于网络)
链接:https://pan.baidu.com/s/1V0Rca9i71-tQbyBFEpNW3g 密码:r3zf
内容如下图: