Open settings: Ctrl + Alt + s or menu File > Settings
Open setting, Editor–>File Types. Add ".idea;.mvn;" to Ignore files and folders
Insert image description here
Additionally .gitignore file commit ignores the contents of the file
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!/src/main//target/
!/src/test//target/
STS
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
I understand the idea
.idea
*.iws
*.iml
*.ipr
NetBeans
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!/src/main//build/
!/src/test//build/
VS Code
.vscode/