This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Whenever NetBeans becomes aware of a git project, it automatically adds an entry to the local .gitignore file for the nbproject/private folder. This is (an admittedly minor) annoyance as nbproject already exists in my global .gitignore file. Is there a way the plugin could verify that this addition is necessary before performing it? Here's a SO thread with some ideas on how to check that: http://stackoverflow.com/questions/466764/show-ignored-files-in-git Thanks for the plugin
Please attach the copy of your global ignore file.
Created attachment 108918 [details] Example .gitignore file I tried setting up a new project with just nbproject and also with nbproject/private added, in both cases it still modifies the project's local .gitignore
(In reply to comment #2) > Created an attachment (id=108918) [details] > Example .gitignore file Where is the file located and what is the excat path to the file? Is it really named .gitignore?
In my case it's located at ~/.gitignore, although you can specify any file as your global git ignore file with a line like this: git config --global core.excludesfile ~/.gitignore Just set it to whatever file name/location you like and git will honor it.
In the meantime (until it's fixed), just disable the option in Tools -> Options -> Misc -> Versioning -> Git (Automatically ignore non-sharable files)
I'll try that, thanks. For any OS X users the preference is called "Permanenly ignore not-sharable folders", typo faithfully reproduced.
fix: http://hg.netbeans.org/core-main/rev/62fd115294b8
7.0.1 fix: http://hg.netbeans.org/releases/rev/073508252d03
Integrated into 'releases' Changeset: http://hg.netbeans.org/releases/rev/073508252d03 User: Ondrej Vrabec <ovrabec@netbeans.org> Log: Issue #199443 - plugin automatically adds nbproject/private to local .gitignore
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/62fd115294b8 User: Ondrej Vrabec <ovrabec@netbeans.org> Log: Issue #199443 - plugin automatically adds nbproject/private to local .gitignore