Search code examples
gitgithubnetbeansbitbucketcommit

Which files of a NetBeans project should be committed to repository?


I was wondering which files of a project should committed to a repository. For example, i've created the gitignore file for a project of mine, a java web app created with NetBeans. On gitignore.io i put the netbeans tag but i noticed that there's some files likes .properties or build.xml still not ignored. Should i ignore those ones too or not? And the META-INF and WEB-INF should be ignored too?

Thanks in advance


Solution

  • GitHub has a repository with a lot of example .gitignore-Files.

    Just collect your suggested Files and put all together in a .gitignore

    Here is the .gitignore for NetBeans: https://github.com/github/gitignore/blob/master/Global/NetBeans.gitignore