Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save niclashoyer/916194 to your computer and use it in GitHub Desktop.
Save niclashoyer/916194 to your computer and use it in GitHub Desktop.
gitignore for netbeans project that ignores generic configuration files that are generated by netbeans
#ant specific
dist/
build/
#netbeans specific
core
nbproject/*
!nbproject/project.properties
!nbproject/project.xml
#java specific
*.class
#general swap/backup files
*.so
*.log
*.out
*~
*.swp
*.DS_Store
*.lock
@josephbales
Copy link

Question: Why do you do the following?

!nbproject/project.properties
!nbproject/project.xml

These files are showing up in my repository, but they shouldn't be necessary should they? Yet if I removed them from tracking, Netbeans won't recognize the project even though they are still there. I guess Netbeans only sees what git sees? Very confused n00b here.

@tianruig
Copy link

tianruig commented Oct 3, 2013

! means not, so those files will show up. That is necessary so that all files in nbproject are ignored except project.properties and project.xml

@sergiokml
Copy link

sergiokml commented May 6, 2016

That is not necessary , Netbeans automaticamente ignora las carpetas privadas.
image

@lt49
Copy link

lt49 commented Jun 16, 2017

Donde entraste para configurar esosergiokml

@pp4x
Copy link

pp4x commented Dec 11, 2017

Tools->Options->Team->Versioning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment