eclipse git提交忽略文件配置
一、修改.gitgnore文件
/target/
!.mvn/wrapper/maven-wrapper.jar
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
### NetBeans ###
/nbproject/private/
/build/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
### Eclipse ###
/target/
/.settings/
.classpath
.project
.class
二、cmd 打开当前目录
输入以下命令
1. git rm -r --cached .
2. git add .
3. git commit -m "update gitignore"