.gitignore file for Java

I am working with Java projects and Git both. But sometimes opening a project from different IDE will create extra files which we really don’t want. So using the .gitignore file in the root folder of your Git repository will ignore files and patterns you have mentioned. Finally, I found there are three main Java IDEs currently.

I am very sorry if your favourite IDE is not listed here. Please do not start IDE wars. So I just went through the Bitbucket and GitHub (link to gitignore templates). Then I created my own .gitignore file. I wish this would help you.

· bitbucket, .gitignore, java. eclipse, git, intellij idea, netbeans, github