Netbeans displays files as ignored, but they are not in gitignore

Netbeans displays one folder and all the base files that are ignored by VCS (I use Git), but when I use git status or Atlassian SourceTree, the files are not ignored and are listed as modified and ready to be committed.

In particular, NetBeans IDE 7.1 (Build 201112071828) - PHP build, Git plug-in version: 1.1.1.1 (comes with NetBeans IDE 7.1 (build 201112071828)), CLI Git version 1.7.5.4

Missing www/inc folder. Unignign does not help. Ignoring and inactivity changes the .gitignore file .gitignore , but the folder is still grayed out with (I) , an ignored status marker. I also noticed some errors: the www/inc subfolders often turn gray only if I expand them to see their contents, but sometimes they turn gray when I open the already gray www/inc .

I checked .gitignore in the top folder of the project and completely ignored one and the whole source tree of the project. There is only one file and it indicates

 /nbproject/private/ /log/ /www/debuglogs/*.log /www/images/goods/*/* /www/inc/content/ 

The .git/config file does not mention ignore. In ~/.gitconfig global gitignore is defined as /Users/sheershoff/.gitignore_global , and the global ignore file is as follows:

 *~ .DS_Store 

There is no .git/info folder in the local Git repository, and there is a project.git/info/exclude file in the remote open repository, but it consists of several lines with comments, which I think are the default.

As for Netbeans, I tried to clear the cache folder and install global IDE files with ignored files ( Tools->Options->Miscellaneous->Files ) in an empty line and restart the IDE. I also checked the settings of the ignored project folders - it is empty.

After several hours of fruitless but energetic digging and googling, I managed to solve a similar problem on a Windows machine (same Netbeans build number) with the same project that was pulled from the same remote repo with the same folder, which is disrespectfully ignored, editing some files Netbeans properties (I have to mention that the ignore.path parameter is empty here, and on Windows it was empty, and I also set all the inclusion parameters to empty lines, since I do not use them in the project). And as far as I remember, it was something with an include section, and not with ignore . Although, he cannot find it in the repo history, it was probably in the settings of the private netbeans project or some global netbeans settings.

And now this error repeats on my Mac at work, and nothing helps me get Netbeans to show ignored files that are not ignored.

What should I do to make them display normally in Netbeans, since they are not ignored according to other Git tools?

+4
source share
1 answer

As with new builds, deleting the /www/images/goods/*/* will solve the problem.

+1
source

Source: https://habr.com/ru/post/1398847/


All Articles