I have two identical java projects NetBeans A and B; A is controlled through the git command line, B through Netbeans git integration.
A: via command line
git init
git add.
B: via NetBenas IDE (tested on version 7.3)
Team, Git, Initialize
Team, Git, Add
results
A: all dir and files are tracked
B: all tracked but build /, dist /, nbproject / private / directories.
This may suit me, but I would rather decide for myself.
So I was looking for the .gitignore file that NetBeans had to create in order to ignore such files. But it doesn’t work like this: it seems that it ignores the build and dist directories based on a non-standard git entry, but something that comes from NetBeans.
Where is this Netbeans setup? I found the one shown in the screenshot above in the Netbeans settings.
Unfortunately, as soon as I turned off this flag, the result will be the same (even if I start a new project from scratch!).
At this point, the question arises: how do I inlcude dist files (if I wanted) in git tracked files with netbeans git client?

source
share