Netbeans and Git .obj files are ignored

I am working on a small git project involving .obj files.

When I look at the "project tab", I see that they are ignored.

enter image description here

But I can’t understand why, if I look at my .gitignore:

/DepthPeeling/nbproject/private/
/DepthPeeling/dist/
/DepthPeeling/build/

Good looking

If I open git bash and print

$ git add dragon.obj
The following paths are ignored by one of your .gitignore files:
DepthPelling/sry/depthPeeling/data/dragon.ogj
Use -f if you really want to add them.
fatal: no file added

Wut?

Could there be more than one .gitignore file? If I'm looking for them, I will find only the one that is in the root directory of the project itself (the one that I showed earlier) and nothing more.

Edit: it looks like I have globally ignored D: \ Documents \ gitignore_global.txt

#ignore thumbnails created by windows
Thumbs.db
#Ignore files build by Visual Studio
*.obj
*.exe
*.pdb
*.user
*.aps
*.pch
*.vspscc
*_i.c
*_p.c
*.ncb
*.suo
*.tlb
*.tlh
*.bak
*.cache
*.ilk
*.log
*.dll
*.lib
*.sbr
+4
source share
1 answer

, .gitignore ( ) .obj git check-ignore:

git check-ignore -v -- dragon.obj

OP:

"D:\\Documents\\gitignore_global.txt":5:*.obj

:

SourceTree ( git repo), a gitignore_global.txt .

A git config -l - :

[core] 
   excludesfile = C:\\Users\\username\\Documents\\gitignore_global.txt
+11

All Articles