Can you show me example of .gitignore
file for java, that consider a lot of different files that are not included(jar, war, classpath, files that IDEA and other IDE generates and so on and on). I mean really big .gitignore
.
What I currently have is
**/target/
/target/
*/target/*
.classpath
.project
.settings
# Package Files #
*.jar
*.war
*.ear
*.iml
*.idea
target/
). Adding*.jar, *.war, *.ear
are superfluous given that in a proper Maven project, such packaged output should be put undertarget
directory. You do not need to exclude them again.