Git ignoring a directory not in .gitignore

Nothing happens when I try to add gdb-7.8 to my repository, so I ran check-ignore from the project root and it shows:

.gitignore:31:*.8   src/.../gdb-7.8/

But this line is not in the .gitignore file:

# Object files
*.o
*.ko
*.obj
*.elf

# Libraries
*.lib
*.a

# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib

# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex

# Other stuff
*.Plo
*.pp
*.d
*.lo
*.cmd
*.8
*.w
*.img
*.builtin
*.order
*.bin
*.man
*.sub

# Directories
/images

There is nothing in .git / info / that excludes and does not have a global .gitignore.

Any ideas?

+4
source share
2 answers

Git supports the global exception file. It is defined as core.excludesfilein yours ~/.gitconfig.

Some software (for example, boxen ) adds an exclusion file or overrides a previously existing one, so if you have not added it yourself, it may come from somewhere else.

, , git config --get core.excludesfile.

+1

.gitignore () . find . -name .gitignore?

0

All Articles