The base directory of a project is LaTeX which contains the .gitignores:
*.aux
*.pdf
*~
Normally, I don't want to have the pdf files since they are generated by the .tex files. However, inside an image directory under LaTeX, the .pdf files are actually images which are imported into the document.
In the img directory, there is the .gitignore file:
*~
so the only thing I want ignored under img is the emacs backup files ending in ~
The .pdf files in img/08testing are being ignored though. Other answers on stack seem to imply that the subsidiary .gitignore should be overriding the parent. What am I doing wrong?