12 January 2016

Files and folders to add to gitignore for a Netbeans project

You're obviously on this page because you're a Netbeans fan. Congrats for choosing it over Eclipse!

When it came to creating a .gitignore file for my Netbeans project, it was hard to find resources on the internet to figure it out. Needing to push and pull to a Git repository meant that I shouldn't mess up my colleague's or my project settings, but still be able to share code.

So after some trial and error, these are the files I figured that need to be added to .gitignore.


/.project
*.o
*.o.d
/build/
/dist/
/lib/
/nbproject/private/
/nbproject/Makefile-Debug.mk
/nbproject/Makefile-impl.mk
/nbproject/Makefile-Release.mk
/nbproject/Makefile-variables.
mk

/nbproject/Package-Debug.bash
/nbproject/Package-Release.
bash
.dep.inc

DefaultComponent.mak
DefaultConfig.cg_info
MainDefaultComponent.cpp
MainDefaultComponent.h 


Some interesting trivia about the Netbeans-Eclipse war from James Gosling himself: http://nrecursions.blogspot.com/2014/07/preview-your-webpage-realtime-while.html#useanyideyoulike

No comments: