Skip to main content
added 415 characters in body
Source Link
elect
  • 7.1k
  • 10
  • 57
  • 123

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

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

enter image description here

But I cant understand why, if I look at my .gitignore:

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

It looks fine

If I open a Git Bash and type

$ 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?

Might it be there is more than one .gitignore file? If I look for them, I find only the one in the root directory of the project itself (the one I shown before) and nothing more..

Edit: so it looks like I have a global ignore 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

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

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

enter image description here

But I cant understand why, if I look at my .gitignore:

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

It looks fine

If I open a Git Bash and type

$ 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?

Might it be there is more than one .gitignore file? If I look for them, I find only the one in the root directory of the project itself (the one I shown before) and nothing more..

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

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

enter image description here

But I cant understand why, if I look at my .gitignore:

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

It looks fine

If I open a Git Bash and type

$ 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?

Might it be there is more than one .gitignore file? If I look for them, I find only the one in the root directory of the project itself (the one I shown before) and nothing more..

Edit: so it looks like I have a global ignore 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
Source Link
elect
  • 7.1k
  • 10
  • 57
  • 123

Netbeans and Git, .obj files ignored

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

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

enter image description here

But I cant understand why, if I look at my .gitignore:

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

It looks fine

If I open a Git Bash and type

$ 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?

Might it be there is more than one .gitignore file? If I look for them, I find only the one in the root directory of the project itself (the one I shown before) and nothing more..