文件名.gitignore 放在idea的项目根目录下就可以
.gitignore
.idea/* .mvn/* mvnw mvnw.cmd *.iml logs *.jar **/target/* **/.idea/*