1.git config --global core.excludesfile '~/.gitignore'
2.创建.gitignore文件
3添加如下信息:
/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/
*.log
*.dat
target/
output/
.DS_Store
logs/
*.dat
log/
logs/
ilogFailedLogs/
ilogMetricLogs/
temp.text
*.tmp
package.bat
target
.gitignore
网友评论