Skip to content

Instantly share code, notes, and snippets.

@lbruun
Last active June 9, 2024 14:55
Show Gist options
  • Save lbruun/5514dbe038f68e3df64917a7cf4e8ac2 to your computer and use it in GitHub Desktop.
Save lbruun/5514dbe038f68e3df64917a7cf4e8ac2 to your computer and use it in GitHub Desktop.
Generalized .gitignore file
#
# Git ignore
#
# This can serve as a generalized .gitignore file which is suitable for most
# Java projects. In particular, it may be suitable for projects where contributors
# use different IDEs. It serves as a guard-rail so that inexperienced users do
# not by mistake commit their IDE-specific files into the git repo.
# (in very, very, rare case you may actually want to commit IDE-specific files
# in which case you can edit the below)
#
# Ignore Maven stuff
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
.flattened-pom.xml
# https://github.com/takari/maven-wrapper#usage-without-binary-jar
.mvn/wrapper/maven-wrapper.jar
# Ignore Eclipse stuff
.classpath
.project
.settings/
# Ignore IntelliJ IDEA stuff
.idea/
*.iml
*.iws
# Ignore NetBeans stuff
nbproject/
nbactions.xml
nb-configuration.xml
# Ignore Mac OS stuff
.DS_Store
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment