Goran
Goran

Reputation: 93

Open files in NetBeans 8.0.2 are kept in the project file thus making it dirty in GIT

I've been using NetBeans for the last couple of years and only recently upgraded to 8.0.2. It seems that the new project file tracks which files are open in the project workspace (C++) and thus the project file appears as modified whenever I open Netbeans, although I haven't changed anything. Is there a setting to disable this?

Upvotes: 0

Views: 126

Answers (1)

WillShackleford
WillShackleford

Reputation: 7018

Create a file named ".gitignore" in the top-level directory, if it does not already exist.

Add the line:

nbproject/private/

To do this with Netbeans: Window -> Files, Select the Directory and right-click for Pop-up.
New -> Other ... -> Empty File.
Name the file ".gitignore"

When you do diffs and commits etc. it should ignore the private files that might have changed.

Upvotes: 2

Related Questions